{
  "openapi": "3.0.3",
  "info": {
    "title": "Nordlet Accounting API",
    "version": "0.3.6",
    "description": "API-first accounting for the EU/EEA market (Lithuania first). Everything the product can do is available here.\n\n## Conventions\n- Every operation is `POST /v1/{module}/{resource}/{action}` with a JSON body.\n- Authenticate with `Authorization: Bearer <api key>`. Keys carry scopes like `sales:write` or `*`.\n- List actions accept `page`, `pageSize`, `sort: [{field, dir}]` and `filter: [{field, op, value}]`.\n- Monetary amounts are decimal **strings** (e.g. `\"121.0000\"`), never floats.\n- Errors share one envelope: `{ \"error\": { \"code\", \"message\", \"requestId\", \"key?\", \"params?\", \"fieldErrors?\" } }`; `key` is a stable identifier of the message for translation, with its values in `params`.\n- Country-specific compliance endpoints are namespaced by jurisdiction (e.g. `/v1/declarations/lt/...`)\n  and return 422 unless the company is registered in that country (set at `account/companies/create`).\n\n## Idempotency\nSend an `Idempotency-Key` header on any mutating call. Retries replay the original response\n(marked with `x-idempotent-replay: true`); reusing a key with a different payload returns 422.\n\n## Rate limits\n300 requests/min per API key by default. 429 responses include a `retry-after` header.\n\n## Webhooks\nSubscribe via `webhooks/subscriptions/create`. Deliveries are HMAC-signed\n(`x-nordlet-signature-v2: t=<unix seconds>,v1=<hex of HMAC over \"<t>.<body>\">`, plus the original\n`x-nordlet-signature: sha256=<hex>`) and retried for about 24 hours. A subscription is paused, and its owners\ne-mailed, after 5 events in a row could not be delivered. Every event type and its envelope\n(`{ id, version, companyId, eventType, createdAt, data }`) are listed under `x-webhooks`.\n\nGuides — getting started, SDKs, conventions, bank imports, migrating from another system, EU VAT,\nrevenue recognition, consolidation — live at <https://nordlet.com/en/docs>."
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "requestId"
            ],
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "validation",
                  "unauthorized",
                  "forbidden",
                  "not_found",
                  "conflict",
                  "idempotency_key_reuse",
                  "idempotency_in_progress",
                  "rate_limited",
                  "payment_required",
                  "internal"
                ]
              },
              "message": {
                "type": "string",
                "maxLength": 2000,
                "pattern": "^[\\s\\S]*$"
              },
              "requestId": {
                "type": "string",
                "maxLength": 64,
                "pattern": "^[a-zA-Z0-9_-]+$"
              },
              "fieldErrors": {
                "type": "object",
                "maxProperties": 100,
                "additionalProperties": {
                  "type": "array",
                  "maxItems": 100,
                  "items": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "paths": {
    "/v1/reference/exchange-rates/sync": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "date": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "imported": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    }
                  },
                  "required": [
                    "date",
                    "imported"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceExchangeRatesSync",
        "summary": "Reference exchange rates sync",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "exchangeRatesSync"
      }
    },
    "/v1/reference/exchange-rates/list": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "currencyCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "rate": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "currencyCode",
                          "date",
                          "rate"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceExchangeRatesList",
        "summary": "Reference exchange rates list",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "exchangeRatesList"
      }
    },
    "/v1/reference/exchange-rates/set": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "rate": {
                    "type": "string",
                    "pattern": "^\\d{1,10}(\\.\\d{1,8})?$",
                    "example": "121.00000000"
                  }
                },
                "required": [
                  "currency",
                  "date",
                  "rate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "currencyCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "rate": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "currencyCode",
                    "date",
                    "rate"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceExchangeRatesSet",
        "summary": "Reference exchange rates set",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "exchangeRatesSet"
      }
    },
    "/v1/reference/exchange-rates/overrides/list": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "currencyCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "rate": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "currencyCode",
                          "date",
                          "rate"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceExchangeRatesOverridesList",
        "summary": "Reference exchange rates overrides list",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "exchangeRatesOverridesList"
      }
    },
    "/v1/reference/exchange-rates/overrides/delete": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "currency",
                  "date"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceExchangeRatesOverridesDelete",
        "summary": "Reference exchange rates overrides delete",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "exchangeRatesOverridesDelete"
      }
    },
    "/v1/reference/countries/list": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isEu": {
                            "type": "boolean"
                          },
                          "isEea": {
                            "type": "boolean"
                          },
                          "names": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "required": [
                              "en",
                              "lt",
                              "de"
                            ],
                            "maxProperties": 100
                          }
                        },
                        "required": [
                          "code",
                          "isEu",
                          "isEea",
                          "names"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceCountriesList",
        "summary": "Reference countries list",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "countriesList"
      }
    },
    "/v1/reference/lt/counties/list": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isoCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "code",
                          "isoCode",
                          "name"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceLtCountiesList",
        "summary": "Reference lt counties list",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "ltCountiesList"
      }
    },
    "/v1/reference/lt/municipalities/list": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "countyCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "countyCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "code",
                          "name",
                          "countyCode"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceLtMunicipalitiesList",
        "summary": "Reference lt municipalities list",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "ltMunicipalitiesList"
      }
    },
    "/v1/reference/lt/cities/list": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "municipalityCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "q": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "municipalityCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name",
                          "municipalityCode"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceLtCitiesList",
        "summary": "Reference lt cities list",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "ltCitiesList"
      }
    },
    "/v1/reference/banks/list": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "countryCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "bic": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "bankCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isActive": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "countryCode",
                          "name",
                          "bic",
                          "bankCode",
                          "isActive"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceBanksList",
        "summary": "Reference banks list",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "banksList"
      }
    },
    "/v1/reference/banks/upsert": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "countryCode": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "bic": {
                    "type": "string",
                    "minLength": 8,
                    "maxLength": 11,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "bankCode": {
                    "type": "string",
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isActive": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "countryCode",
                  "name",
                  "bic"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "countryCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bic": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isActive": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "countryCode",
                    "name",
                    "bic",
                    "bankCode",
                    "isActive"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceBanksUpsert",
        "summary": "Reference banks upsert",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "banksUpsert"
      }
    },
    "/v1/reference/lt/regions/list": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isoCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "code",
                          "isoCode",
                          "name"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceLtRegionsList",
        "summary": "Reference lt regions list",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "ltRegionsList"
      }
    },
    "/v1/reference/currencies/list": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "minorUnits": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "code",
                          "name",
                          "minorUnits"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceCurrenciesList",
        "summary": "Reference currencies list",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "currenciesList"
      }
    },
    "/v1/reference/vat-classifiers/list": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "countryCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ratePercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "code",
                          "countryCode",
                          "name",
                          "ratePercent"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceVatClassifiersList",
        "summary": "Reference vat classifiers list",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "vatClassifiersList"
      }
    },
    "/v1/reference/vat-classifiers/upsert": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "rows": {
                    "minItems": 1,
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "countryCode": {
                          "default": "LT",
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 2,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 600,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "ratePercent": {
                          "type": "string",
                          "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        }
                      },
                      "required": [
                        "code",
                        "name"
                      ]
                    }
                  }
                },
                "required": [
                  "rows"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "upserted": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    }
                  },
                  "required": [
                    "upserted"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceVatClassifiersUpsert",
        "summary": "Reference vat classifiers upsert",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "vatClassifiersUpsert"
      }
    },
    "/v1/reference/eu-vat-rates/list": {
      "post": {
        "tags": [
          "reference"
        ],
        "description": "Effective EU VAT rate mapping for this company: EC TEDB defaults, replaced per country by any company overrides. Verify the mapping fits the goods and services you sell before relying on it.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "countryCode": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "notice": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "countryCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "category": {
                            "type": "string",
                            "enum": [
                              "standard",
                              "reduced",
                              "super_reduced",
                              "parking"
                            ]
                          },
                          "ratePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "validFrom": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "validTo": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "source": {
                            "type": "string",
                            "enum": [
                              "default",
                              "company"
                            ]
                          }
                        },
                        "required": [
                          "countryCode",
                          "category",
                          "ratePercent",
                          "validFrom",
                          "validTo",
                          "source"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "notice",
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceEuVatRatesList",
        "summary": "Reference eu vat rates list",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "euVatRatesList"
      }
    },
    "/v1/reference/eu-vat-rates/set-overrides": {
      "post": {
        "tags": [
          "reference"
        ],
        "description": "Replace the VAT rate mapping this company uses for one EU country. Pass an empty rates array to drop the overrides and return to the TEDB defaults. Overrides feed rate suggestions (vat/resolve) and OSS/IOSS return rate classification.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "countryCode": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "rates": {
                    "maxItems": 8,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "category": {
                          "type": "string",
                          "enum": [
                            "standard",
                            "reduced",
                            "super_reduced",
                            "parking"
                          ]
                        },
                        "ratePercent": {
                          "type": "string",
                          "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        }
                      },
                      "required": [
                        "category",
                        "ratePercent"
                      ]
                    }
                  }
                },
                "required": [
                  "countryCode",
                  "rates"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "countryCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "default",
                        "company"
                      ]
                    },
                    "notice": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "category": {
                            "type": "string",
                            "enum": [
                              "standard",
                              "reduced",
                              "super_reduced",
                              "parking"
                            ]
                          },
                          "ratePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "category",
                          "ratePercent"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "countryCode",
                    "source",
                    "notice",
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceEuVatRatesSetOverrides",
        "summary": "Reference eu vat rates set overrides",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "euVatRatesSetOverrides"
      }
    },
    "/v1/reference/vat/resolve": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "customerCountryCode": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "customerIsBusiness": {
                    "type": "boolean"
                  },
                  "supplyType": {
                    "default": "goods",
                    "type": "string",
                    "enum": [
                      "goods",
                      "services",
                      "digital"
                    ]
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "belowDistanceSalesThreshold": {
                    "type": "boolean"
                  },
                  "facilitatedByMarketplace": {
                    "type": "boolean"
                  },
                  "actingAsMarketplace": {
                    "type": "boolean"
                  },
                  "sellerEstablishedInEu": {
                    "type": "boolean"
                  },
                  "importedConsignmentValueEur": {
                    "type": "string",
                    "pattern": "^\\d{1,12}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "scheme": {
                      "type": "string",
                      "enum": [
                        "domestic",
                        "intra_eu_b2b",
                        "reverse_charge",
                        "oss_union",
                        "ioss",
                        "marketplace_deemed",
                        "export",
                        "out_of_scope",
                        "sme_exempt"
                      ]
                    },
                    "vatCountryCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "reverseCharge": {
                      "type": "boolean"
                    },
                    "deemedSupplier": {
                      "type": "boolean"
                    },
                    "zeroRated": {
                      "type": "boolean"
                    },
                    "rates": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "category": {
                            "type": "string",
                            "enum": [
                              "standard",
                              "reduced",
                              "super_reduced",
                              "parking"
                            ]
                          },
                          "ratePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "category",
                          "ratePercent"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "legalBasis": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "scheme",
                    "vatCountryCode",
                    "reverseCharge",
                    "deemedSupplier",
                    "zeroRated",
                    "rates",
                    "legalBasis",
                    "notes"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceVatResolve",
        "summary": "Reference vat resolve",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "vatResolve"
      }
    },
    "/v1/reference/cn-codes/list": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "nameLt": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "supplementaryUnit": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "code",
                          "name",
                          "nameLt",
                          "supplementaryUnit"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceCnCodesList",
        "summary": "Reference cn codes list",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "cnCodesList"
      }
    },
    "/v1/reference/cn-codes/upsert": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "rows": {
                    "minItems": 1,
                    "maxItems": 2000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "pattern": "^\\d{8}$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 600,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "nameLt": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 600,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "supplementaryUnit": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "code",
                        "name"
                      ]
                    }
                  }
                },
                "required": [
                  "rows"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "upserted": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    }
                  },
                  "required": [
                    "upserted"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceCnCodesUpsert",
        "summary": "Reference cn codes upsert",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "cnCodesUpsert"
      }
    },
    "/v1/reference/compliance-versions/list": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "country": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "country": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "system": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "artifact": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "version": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "verifiedOn": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "source": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "resource": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "country",
                          "system",
                          "artifact",
                          "version",
                          "verifiedOn",
                          "source"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceComplianceVersionsList",
        "summary": "Reference compliance versions list",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "complianceVersionsList"
      }
    },
    "/v1/reference/intrastat-thresholds/list": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "year": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "arrivalsReporting": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "dispatchesReporting": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "arrivalsStatistical": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "dispatchesStatistical": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "year",
                          "arrivalsReporting",
                          "dispatchesReporting",
                          "arrivalsStatistical",
                          "dispatchesStatistical"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceIntrastatThresholdsList",
        "summary": "Reference intrastat thresholds list",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "intrastatThresholdsList"
      }
    },
    "/v1/reference/units/list": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "nameLt": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "nameEn": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "code",
                          "nameLt",
                          "nameEn"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceUnitsList",
        "summary": "Reference units list",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "unitsList"
      }
    },
    "/v1/reference/series/create": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "documentType": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "prefix": {
                    "default": "",
                    "type": "string",
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "startAt": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  }
                },
                "required": [
                  "documentType",
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "prefix": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "nextNumber": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "documentType",
                    "prefix",
                    "year",
                    "nextNumber",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceSeriesCreate",
        "summary": "Reference series create",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "seriesCreate"
      }
    },
    "/v1/reference/series/list": {
      "post": {
        "tags": [
          "reference"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentType": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "prefix": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "year": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "nextNumber": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "documentType",
                          "prefix",
                          "year",
                          "nextNumber",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "referenceSeriesList",
        "summary": "Reference series list",
        "x-fern-sdk-group-name": "reference",
        "x-fern-sdk-method-name": "seriesList"
      }
    },
    "/v1/partners/addresses/create": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "default": "billing",
                    "type": "string",
                    "enum": [
                      "billing",
                      "shipping",
                      "registered",
                      "other"
                    ]
                  },
                  "street": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "city": {
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "postalCode": {
                    "type": "string",
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "countryCode": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isDefault": {
                    "default": false,
                    "type": "boolean"
                  },
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "partnerId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "street": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "city": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "postalCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "countryCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isDefault": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "type",
                    "street",
                    "city",
                    "postalCode",
                    "countryCode",
                    "isDefault",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersAddressesCreate",
        "summary": "Partners addresses create",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "addressesCreate"
      }
    },
    "/v1/partners/addresses/update": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "billing",
                      "shipping",
                      "registered",
                      "other"
                    ]
                  },
                  "street": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "city": {
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "postalCode": {
                    "type": "string",
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "countryCode": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isDefault": {
                    "type": "boolean"
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "street": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "city": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "postalCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "countryCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isDefault": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "type",
                    "street",
                    "city",
                    "postalCode",
                    "countryCode",
                    "isDefault",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersAddressesUpdate",
        "summary": "Partners addresses update",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "addressesUpdate"
      }
    },
    "/v1/partners/addresses/delete": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersAddressesDelete",
        "summary": "Partners addresses delete",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "addressesDelete"
      }
    },
    "/v1/partners/addresses/list": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "type": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "street": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "city": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "postalCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "countryCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isDefault": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "partnerId",
                          "type",
                          "street",
                          "city",
                          "postalCode",
                          "countryCode",
                          "isDefault",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersAddressesList",
        "summary": "Partners addresses list",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "addressesList"
      }
    },
    "/v1/partners/contacts/create": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "role": {
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "email": {
                    "type": "string",
                    "maxLength": 200,
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "phone": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 1000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "name",
                  "partnerId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "role": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "email": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "phone": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "name",
                    "role",
                    "email",
                    "phone",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersContactsCreate",
        "summary": "Partners contacts create",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "contactsCreate"
      }
    },
    "/v1/partners/contacts/update": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "role": {
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "email": {
                    "type": "string",
                    "maxLength": 200,
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "phone": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 1000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "role": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "email": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "phone": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "name",
                    "role",
                    "email",
                    "phone",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersContactsUpdate",
        "summary": "Partners contacts update",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "contactsUpdate"
      }
    },
    "/v1/partners/contacts/delete": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersContactsDelete",
        "summary": "Partners contacts delete",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "contactsDelete"
      }
    },
    "/v1/partners/contacts/list": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "role": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "email": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "phone": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "partnerId",
                          "name",
                          "role",
                          "email",
                          "phone",
                          "notes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersContactsList",
        "summary": "Partners contacts list",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "contactsList"
      }
    },
    "/v1/partners/bank-accounts/create": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "iban": {
                    "type": "string",
                    "minLength": 5,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "bankName": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "bic": {
                    "type": "string",
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "currency": {
                    "default": "EUR",
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isDefault": {
                    "default": false,
                    "type": "boolean"
                  },
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "iban",
                  "partnerId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "iban": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bic": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isDefault": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "iban",
                    "bankName",
                    "bic",
                    "currency",
                    "isDefault",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersBankAccountsCreate",
        "summary": "Partners bank accounts create",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "bankAccountsCreate"
      }
    },
    "/v1/partners/bank-accounts/update": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "iban": {
                    "type": "string",
                    "minLength": 5,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "bankName": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "bic": {
                    "type": "string",
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isDefault": {
                    "type": "boolean"
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "iban": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bic": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isDefault": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "iban",
                    "bankName",
                    "bic",
                    "currency",
                    "isDefault",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersBankAccountsUpdate",
        "summary": "Partners bank accounts update",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "bankAccountsUpdate"
      }
    },
    "/v1/partners/bank-accounts/delete": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersBankAccountsDelete",
        "summary": "Partners bank accounts delete",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "bankAccountsDelete"
      }
    },
    "/v1/partners/bank-accounts/list": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "iban": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "bankName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "bic": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isDefault": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "partnerId",
                          "iban",
                          "bankName",
                          "bic",
                          "currency",
                          "isDefault",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersBankAccountsList",
        "summary": "Partners bank accounts list",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "bankAccountsList"
      }
    },
    "/v1/partners/files/list": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "partnerId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "entity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "entityId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "mimeType": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sizeBytes": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "sha256": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "storageKey": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "entity",
                          "entityId",
                          "fileName",
                          "mimeType",
                          "sizeBytes",
                          "sha256",
                          "storageKey",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersFilesList",
        "summary": "Partners files list",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "filesList"
      }
    },
    "/v1/partners/debt-reminders/preview": {
      "post": {
        "summary": "Reminders the overnight debt-reminder job would send today for this company",
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "partnerId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "email": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "locale": {
                            "type": "string",
                            "enum": [
                              "en",
                              "lt",
                              "de"
                            ]
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoices": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64,
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "fullNumber": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "issueDate": {
                                  "type": "string",
                                  "format": "date",
                                  "example": "2026-07-01"
                                },
                                "dueDate": {
                                  "type": "string",
                                  "format": "date",
                                  "example": "2026-07-01"
                                },
                                "remaining": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "daysLate": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "format": "int64"
                                },
                                "interest": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "id",
                                "fullNumber",
                                "issueDate",
                                "dueDate",
                                "remaining",
                                "daysLate",
                                "interest"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "totalDue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "interestDue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "partnerId",
                          "partnerName",
                          "email",
                          "locale",
                          "currency",
                          "invoices",
                          "totalDue",
                          "interestDue"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersDebtRemindersPreview",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "debtRemindersPreview"
      }
    },
    "/v1/partners/debt-reminders/list": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sentTo": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoiceCount": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "totalDue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "interestDue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoiceIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "sentAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "partnerId",
                          "sentTo",
                          "invoiceCount",
                          "totalDue",
                          "interestDue",
                          "currency",
                          "invoiceIds",
                          "sentAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersDebtRemindersList",
        "summary": "Partners debt reminders list",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "debtRemindersList"
      }
    },
    "/v1/partners/validate-vat": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "vatCode": {
                    "type": "string",
                    "minLength": 4,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "valid": {
                      "type": "boolean"
                    },
                    "countryCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "address": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "requestIdentifier": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "checkedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "valid",
                    "countryCode",
                    "vatNumber",
                    "name",
                    "address",
                    "requestIdentifier",
                    "checkedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersValidateVat",
        "summary": "Partners validate vat",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "validateVat"
      }
    },
    "/v1/partners/vat-reviews/list": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "reason": {
                            "type": "string",
                            "enum": [
                              "invalid",
                              "service_error",
                              "name_mismatch"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "open",
                              "resolved"
                            ]
                          },
                          "resolution": {
                            "nullable": true,
                            "type": "string",
                            "enum": [
                              "confirmed_valid",
                              "confirmed_invalid",
                              "dismissed",
                              "revalidated",
                              "superseded"
                            ]
                          },
                          "resolutionNote": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "details": {
                            "nullable": true,
                            "type": "object",
                            "properties": {
                              "message": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "partnerName": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "viesName": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "viesAddress": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "requestIdentifier": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "additionalProperties": false
                          },
                          "resolvedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "partnerId",
                          "vatCode",
                          "reason",
                          "status",
                          "resolution",
                          "resolutionNote",
                          "details",
                          "resolvedAt",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersVatReviewsList",
        "summary": "Partners vat reviews list",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "vatReviewsList"
      }
    },
    "/v1/partners/vat-reviews/resolve": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "resolution": {
                    "type": "string",
                    "enum": [
                      "confirmed_valid",
                      "confirmed_invalid",
                      "dismissed"
                    ]
                  },
                  "note": {
                    "type": "string",
                    "maxLength": 1000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id",
                  "resolution"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "reason": {
                      "type": "string",
                      "enum": [
                        "invalid",
                        "service_error",
                        "name_mismatch"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "open",
                        "resolved"
                      ]
                    },
                    "resolution": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "confirmed_valid",
                        "confirmed_invalid",
                        "dismissed",
                        "revalidated",
                        "superseded"
                      ]
                    },
                    "resolutionNote": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "details": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "message": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "partnerName": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "viesName": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "viesAddress": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "requestIdentifier": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "additionalProperties": false
                    },
                    "resolvedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "vatCode",
                    "reason",
                    "status",
                    "resolution",
                    "resolutionNote",
                    "details",
                    "resolvedAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersVatReviewsResolve",
        "summary": "Partners vat reviews resolve",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "vatReviewsResolve"
      }
    },
    "/v1/partners/create": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "default": "company",
                    "type": "string",
                    "enum": [
                      "company",
                      "person"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "vatCode": {
                    "type": "string",
                    "minLength": 4,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "peppolId": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "email": {
                    "type": "string",
                    "maxLength": 200,
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "phone": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "selfEmploymentCertNo": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "birthDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "isCustomer": {
                    "default": true,
                    "type": "boolean"
                  },
                  "isSupplier": {
                    "default": false,
                    "type": "boolean"
                  },
                  "paymentTermDays": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 730,
                    "format": "int64"
                  },
                  "creditLimit": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "priceListId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "groupId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "statusId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "address": {
                    "type": "object",
                    "properties": {
                      "street": {
                        "type": "string",
                        "maxLength": 200,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "city": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "municipality": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "county": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "postalCode": {
                        "type": "string",
                        "maxLength": 20,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "countryCode": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 2,
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "correspondenceAddress": {
                    "type": "object",
                    "properties": {
                      "street": {
                        "type": "string",
                        "maxLength": 200,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "city": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "municipality": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "county": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "postalCode": {
                        "type": "string",
                        "maxLength": 20,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "countryCode": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 2,
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documentRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "shortName": {
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "website": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "fax": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "eoriCode": {
                    "type": "string",
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "otherCode": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "foreignTaxNumber": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "autoDebtReminder": {
                    "type": "boolean"
                  },
                  "lateInterestPercent": {
                    "type": "string",
                    "pattern": "^\\d{1,3}(\\.\\d{1,3})?$",
                    "example": "121.000"
                  },
                  "firstCallDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "lastCallDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "nextCallDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "rating": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 5,
                    "format": "int64"
                  },
                  "isEmployee": {
                    "type": "boolean"
                  },
                  "isGroupMember": {
                    "type": "boolean"
                  },
                  "isActive": {
                    "type": "boolean"
                  },
                  "legalCountryClass": {
                    "type": "string",
                    "enum": [
                      "lt",
                      "eu",
                      "non_eu"
                    ]
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "company",
                        "person"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "peppolId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "email": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "phone": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "selfEmploymentCertNo": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "birthDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "isCustomer": {
                      "type": "boolean"
                    },
                    "isSupplier": {
                      "type": "boolean"
                    },
                    "paymentTermDays": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "creditLimit": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "priceListId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "groupId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "statusId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatValid": {
                      "nullable": true,
                      "type": "boolean"
                    },
                    "vatValidatedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "address": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "street": {
                          "type": "string",
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "city": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "municipality": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "county": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "postalCode": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "countryCode": {
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 2,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "additionalProperties": false
                    },
                    "correspondenceAddress": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "street": {
                          "type": "string",
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "city": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "municipality": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "county": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "postalCode": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "countryCode": {
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 2,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "additionalProperties": false
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "shortName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "website": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fax": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "eoriCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "otherCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "foreignTaxNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "autoDebtReminder": {
                      "type": "boolean"
                    },
                    "lateInterestPercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "firstCallDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "lastCallDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "nextCallDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "rating": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "isEmployee": {
                      "type": "boolean"
                    },
                    "isGroupMember": {
                      "type": "boolean"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "legalCountryClass": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "lt",
                        "eu",
                        "non_eu"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "name",
                    "code",
                    "vatCode",
                    "peppolId",
                    "email",
                    "phone",
                    "selfEmploymentCertNo",
                    "birthDate",
                    "isCustomer",
                    "isSupplier",
                    "paymentTermDays",
                    "creditLimit",
                    "priceListId",
                    "groupId",
                    "statusId",
                    "vatValid",
                    "vatValidatedAt",
                    "address",
                    "correspondenceAddress",
                    "notes",
                    "documentRef",
                    "shortName",
                    "website",
                    "fax",
                    "eoriCode",
                    "otherCode",
                    "foreignTaxNumber",
                    "autoDebtReminder",
                    "lateInterestPercent",
                    "firstCallDate",
                    "lastCallDate",
                    "nextCallDate",
                    "rating",
                    "isEmployee",
                    "isGroupMember",
                    "isActive",
                    "legalCountryClass",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersCreate",
        "summary": "Partners create",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "create"
      }
    },
    "/v1/partners/find-or-create": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "default": "company",
                    "type": "string",
                    "enum": [
                      "company",
                      "person"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "vatCode": {
                    "type": "string",
                    "minLength": 4,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "peppolId": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "email": {
                    "type": "string",
                    "maxLength": 200,
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "phone": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "selfEmploymentCertNo": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "birthDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "isCustomer": {
                    "default": true,
                    "type": "boolean"
                  },
                  "isSupplier": {
                    "default": false,
                    "type": "boolean"
                  },
                  "paymentTermDays": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 730,
                    "format": "int64"
                  },
                  "creditLimit": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "priceListId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "groupId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "statusId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "address": {
                    "type": "object",
                    "properties": {
                      "street": {
                        "type": "string",
                        "maxLength": 200,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "city": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "municipality": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "county": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "postalCode": {
                        "type": "string",
                        "maxLength": 20,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "countryCode": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 2,
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "correspondenceAddress": {
                    "type": "object",
                    "properties": {
                      "street": {
                        "type": "string",
                        "maxLength": 200,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "city": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "municipality": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "county": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "postalCode": {
                        "type": "string",
                        "maxLength": 20,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "countryCode": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 2,
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documentRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "shortName": {
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "website": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "fax": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "eoriCode": {
                    "type": "string",
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "otherCode": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "foreignTaxNumber": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "autoDebtReminder": {
                    "type": "boolean"
                  },
                  "lateInterestPercent": {
                    "type": "string",
                    "pattern": "^\\d{1,3}(\\.\\d{1,3})?$",
                    "example": "121.000"
                  },
                  "firstCallDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "lastCallDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "nextCallDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "rating": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 5,
                    "format": "int64"
                  },
                  "isEmployee": {
                    "type": "boolean"
                  },
                  "isGroupMember": {
                    "type": "boolean"
                  },
                  "isActive": {
                    "type": "boolean"
                  },
                  "legalCountryClass": {
                    "type": "string",
                    "enum": [
                      "lt",
                      "eu",
                      "non_eu"
                    ]
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "created": {
                      "type": "boolean"
                    },
                    "partner": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "company",
                            "person"
                          ]
                        },
                        "name": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "code": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "vatCode": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "peppolId": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "email": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "phone": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "selfEmploymentCertNo": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "birthDate": {
                          "nullable": true,
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "isCustomer": {
                          "type": "boolean"
                        },
                        "isSupplier": {
                          "type": "boolean"
                        },
                        "paymentTermDays": {
                          "nullable": true,
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "creditLimit": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "priceListId": {
                          "nullable": true,
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "groupId": {
                          "nullable": true,
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "statusId": {
                          "nullable": true,
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "vatValid": {
                          "nullable": true,
                          "type": "boolean"
                        },
                        "vatValidatedAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "address": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "street": {
                              "type": "string",
                              "maxLength": 200,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "city": {
                              "type": "string",
                              "maxLength": 100,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "municipality": {
                              "type": "string",
                              "maxLength": 100,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "county": {
                              "type": "string",
                              "maxLength": 100,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "postalCode": {
                              "type": "string",
                              "maxLength": 20,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "countryCode": {
                              "type": "string",
                              "minLength": 2,
                              "maxLength": 2,
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "additionalProperties": false
                        },
                        "correspondenceAddress": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "street": {
                              "type": "string",
                              "maxLength": 200,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "city": {
                              "type": "string",
                              "maxLength": 100,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "municipality": {
                              "type": "string",
                              "maxLength": 100,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "county": {
                              "type": "string",
                              "maxLength": 100,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "postalCode": {
                              "type": "string",
                              "maxLength": 20,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "countryCode": {
                              "type": "string",
                              "minLength": 2,
                              "maxLength": 2,
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "additionalProperties": false
                        },
                        "notes": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "documentRef": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "shortName": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "website": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "fax": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "eoriCode": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "otherCode": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "foreignTaxNumber": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "autoDebtReminder": {
                          "type": "boolean"
                        },
                        "lateInterestPercent": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "firstCallDate": {
                          "nullable": true,
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "lastCallDate": {
                          "nullable": true,
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "nextCallDate": {
                          "nullable": true,
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "rating": {
                          "nullable": true,
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "isEmployee": {
                          "type": "boolean"
                        },
                        "isGroupMember": {
                          "type": "boolean"
                        },
                        "isActive": {
                          "type": "boolean"
                        },
                        "legalCountryClass": {
                          "nullable": true,
                          "type": "string",
                          "enum": [
                            "lt",
                            "eu",
                            "non_eu"
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        }
                      },
                      "required": [
                        "id",
                        "type",
                        "name",
                        "code",
                        "vatCode",
                        "peppolId",
                        "email",
                        "phone",
                        "selfEmploymentCertNo",
                        "birthDate",
                        "isCustomer",
                        "isSupplier",
                        "paymentTermDays",
                        "creditLimit",
                        "priceListId",
                        "groupId",
                        "statusId",
                        "vatValid",
                        "vatValidatedAt",
                        "address",
                        "correspondenceAddress",
                        "notes",
                        "documentRef",
                        "shortName",
                        "website",
                        "fax",
                        "eoriCode",
                        "otherCode",
                        "foreignTaxNumber",
                        "autoDebtReminder",
                        "lateInterestPercent",
                        "firstCallDate",
                        "lastCallDate",
                        "nextCallDate",
                        "rating",
                        "isEmployee",
                        "isGroupMember",
                        "isActive",
                        "legalCountryClass",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "created",
                    "partner"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersFindOrCreate",
        "summary": "Partners find or create",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "findOrCreate"
      }
    },
    "/v1/partners/get": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "company",
                        "person"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "peppolId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "email": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "phone": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "selfEmploymentCertNo": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "birthDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "isCustomer": {
                      "type": "boolean"
                    },
                    "isSupplier": {
                      "type": "boolean"
                    },
                    "paymentTermDays": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "creditLimit": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "priceListId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "groupId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "statusId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatValid": {
                      "nullable": true,
                      "type": "boolean"
                    },
                    "vatValidatedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "address": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "street": {
                          "type": "string",
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "city": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "municipality": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "county": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "postalCode": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "countryCode": {
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 2,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "additionalProperties": false
                    },
                    "correspondenceAddress": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "street": {
                          "type": "string",
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "city": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "municipality": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "county": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "postalCode": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "countryCode": {
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 2,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "additionalProperties": false
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "shortName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "website": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fax": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "eoriCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "otherCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "foreignTaxNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "autoDebtReminder": {
                      "type": "boolean"
                    },
                    "lateInterestPercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "firstCallDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "lastCallDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "nextCallDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "rating": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "isEmployee": {
                      "type": "boolean"
                    },
                    "isGroupMember": {
                      "type": "boolean"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "legalCountryClass": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "lt",
                        "eu",
                        "non_eu"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "name",
                    "code",
                    "vatCode",
                    "peppolId",
                    "email",
                    "phone",
                    "selfEmploymentCertNo",
                    "birthDate",
                    "isCustomer",
                    "isSupplier",
                    "paymentTermDays",
                    "creditLimit",
                    "priceListId",
                    "groupId",
                    "statusId",
                    "vatValid",
                    "vatValidatedAt",
                    "address",
                    "correspondenceAddress",
                    "notes",
                    "documentRef",
                    "shortName",
                    "website",
                    "fax",
                    "eoriCode",
                    "otherCode",
                    "foreignTaxNumber",
                    "autoDebtReminder",
                    "lateInterestPercent",
                    "firstCallDate",
                    "lastCallDate",
                    "nextCallDate",
                    "rating",
                    "isEmployee",
                    "isGroupMember",
                    "isActive",
                    "legalCountryClass",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersGet",
        "summary": "Partners get",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "get"
      }
    },
    "/v1/partners/update": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "company",
                      "person"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "vatCode": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 4,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "peppolId": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "email": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 200,
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "phone": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "selfEmploymentCertNo": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "birthDate": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "isCustomer": {
                    "type": "boolean"
                  },
                  "isSupplier": {
                    "type": "boolean"
                  },
                  "paymentTermDays": {
                    "nullable": true,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 730,
                    "format": "int64"
                  },
                  "creditLimit": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "priceListId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "groupId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "statusId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "address": {
                    "nullable": true,
                    "type": "object",
                    "properties": {
                      "street": {
                        "type": "string",
                        "maxLength": 200,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "city": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "municipality": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "county": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "postalCode": {
                        "type": "string",
                        "maxLength": 20,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "countryCode": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 2,
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "correspondenceAddress": {
                    "nullable": true,
                    "type": "object",
                    "properties": {
                      "street": {
                        "type": "string",
                        "maxLength": 200,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "city": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "municipality": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "county": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "postalCode": {
                        "type": "string",
                        "maxLength": 20,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "countryCode": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 2,
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "notes": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documentRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "shortName": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "website": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "fax": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "eoriCode": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "otherCode": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "foreignTaxNumber": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "autoDebtReminder": {
                    "type": "boolean"
                  },
                  "lateInterestPercent": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,3}(\\.\\d{1,3})?$",
                    "example": "121.000"
                  },
                  "firstCallDate": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "lastCallDate": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "nextCallDate": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "rating": {
                    "nullable": true,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 5,
                    "format": "int64"
                  },
                  "isEmployee": {
                    "type": "boolean"
                  },
                  "isGroupMember": {
                    "type": "boolean"
                  },
                  "isActive": {
                    "type": "boolean"
                  },
                  "legalCountryClass": {
                    "nullable": true,
                    "type": "string",
                    "enum": [
                      "lt",
                      "eu",
                      "non_eu"
                    ]
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "company",
                        "person"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "peppolId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "email": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "phone": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "selfEmploymentCertNo": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "birthDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "isCustomer": {
                      "type": "boolean"
                    },
                    "isSupplier": {
                      "type": "boolean"
                    },
                    "paymentTermDays": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "creditLimit": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "priceListId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "groupId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "statusId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatValid": {
                      "nullable": true,
                      "type": "boolean"
                    },
                    "vatValidatedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "address": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "street": {
                          "type": "string",
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "city": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "municipality": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "county": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "postalCode": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "countryCode": {
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 2,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "additionalProperties": false
                    },
                    "correspondenceAddress": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "street": {
                          "type": "string",
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "city": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "municipality": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "county": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "postalCode": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "countryCode": {
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 2,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "additionalProperties": false
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "shortName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "website": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fax": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "eoriCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "otherCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "foreignTaxNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "autoDebtReminder": {
                      "type": "boolean"
                    },
                    "lateInterestPercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "firstCallDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "lastCallDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "nextCallDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "rating": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "isEmployee": {
                      "type": "boolean"
                    },
                    "isGroupMember": {
                      "type": "boolean"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "legalCountryClass": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "lt",
                        "eu",
                        "non_eu"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "name",
                    "code",
                    "vatCode",
                    "peppolId",
                    "email",
                    "phone",
                    "selfEmploymentCertNo",
                    "birthDate",
                    "isCustomer",
                    "isSupplier",
                    "paymentTermDays",
                    "creditLimit",
                    "priceListId",
                    "groupId",
                    "statusId",
                    "vatValid",
                    "vatValidatedAt",
                    "address",
                    "correspondenceAddress",
                    "notes",
                    "documentRef",
                    "shortName",
                    "website",
                    "fax",
                    "eoriCode",
                    "otherCode",
                    "foreignTaxNumber",
                    "autoDebtReminder",
                    "lateInterestPercent",
                    "firstCallDate",
                    "lastCallDate",
                    "nextCallDate",
                    "rating",
                    "isEmployee",
                    "isGroupMember",
                    "isActive",
                    "legalCountryClass",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersUpdate",
        "summary": "Partners update",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "update"
      }
    },
    "/v1/partners/delete": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersDelete",
        "summary": "Partners delete",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "delete"
      }
    },
    "/v1/partners/anonymize": {
      "post": {
        "summary": "Blank a partner's personal data and hide the record",
        "tags": [
          "partners"
        ],
        "description": "Removes birth date, self-employment certificate number, email, phone, address, notes, contacts, addresses and bank accounts, then hides the partner. The name, code and VAT number stay because issued invoices must keep identifying the counterparty for the statutory retention period.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "anonymized": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "anonymized"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersAnonymize",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "anonymize"
      }
    },
    "/v1/partners/list": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "company",
                              "person"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "peppolId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "email": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "phone": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "selfEmploymentCertNo": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "birthDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "isCustomer": {
                            "type": "boolean"
                          },
                          "isSupplier": {
                            "type": "boolean"
                          },
                          "paymentTermDays": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "creditLimit": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "priceListId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "groupId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "statusId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatValid": {
                            "nullable": true,
                            "type": "boolean"
                          },
                          "vatValidatedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "address": {
                            "nullable": true,
                            "type": "object",
                            "properties": {
                              "street": {
                                "type": "string",
                                "maxLength": 200,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "city": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "municipality": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "county": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "postalCode": {
                                "type": "string",
                                "maxLength": 20,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "countryCode": {
                                "type": "string",
                                "minLength": 2,
                                "maxLength": 2,
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "additionalProperties": false
                          },
                          "correspondenceAddress": {
                            "nullable": true,
                            "type": "object",
                            "properties": {
                              "street": {
                                "type": "string",
                                "maxLength": 200,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "city": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "municipality": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "county": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "postalCode": {
                                "type": "string",
                                "maxLength": 20,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "countryCode": {
                                "type": "string",
                                "minLength": 2,
                                "maxLength": 2,
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "additionalProperties": false
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentRef": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "shortName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "website": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fax": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "eoriCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "otherCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "foreignTaxNumber": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "autoDebtReminder": {
                            "type": "boolean"
                          },
                          "lateInterestPercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "firstCallDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "lastCallDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "nextCallDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "rating": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "isEmployee": {
                            "type": "boolean"
                          },
                          "isGroupMember": {
                            "type": "boolean"
                          },
                          "isActive": {
                            "type": "boolean"
                          },
                          "legalCountryClass": {
                            "nullable": true,
                            "type": "string",
                            "enum": [
                              "lt",
                              "eu",
                              "non_eu"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "type",
                          "name",
                          "code",
                          "vatCode",
                          "peppolId",
                          "email",
                          "phone",
                          "selfEmploymentCertNo",
                          "birthDate",
                          "isCustomer",
                          "isSupplier",
                          "paymentTermDays",
                          "creditLimit",
                          "priceListId",
                          "groupId",
                          "statusId",
                          "vatValid",
                          "vatValidatedAt",
                          "address",
                          "correspondenceAddress",
                          "notes",
                          "documentRef",
                          "shortName",
                          "website",
                          "fax",
                          "eoriCode",
                          "otherCode",
                          "foreignTaxNumber",
                          "autoDebtReminder",
                          "lateInterestPercent",
                          "firstCallDate",
                          "lastCallDate",
                          "nextCallDate",
                          "rating",
                          "isEmployee",
                          "isGroupMember",
                          "isActive",
                          "legalCountryClass",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersList",
        "summary": "Partners list",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "list"
      }
    },
    "/v1/partners/groups/create": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "code",
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersGroupsCreate",
        "summary": "Partners groups create",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "groupsCreate"
      }
    },
    "/v1/partners/groups/update": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersGroupsUpdate",
        "summary": "Partners groups update",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "groupsUpdate"
      }
    },
    "/v1/partners/groups/delete": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersGroupsDelete",
        "summary": "Partners groups delete",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "groupsDelete"
      }
    },
    "/v1/partners/groups/list": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "code",
                          "name",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersGroupsList",
        "summary": "Partners groups list",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "groupsList"
      }
    },
    "/v1/partners/statuses/create": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "sortOrder": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000,
                    "format": "int64"
                  }
                },
                "required": [
                  "code",
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sortOrder": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "sortOrder",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersStatusesCreate",
        "summary": "Partners statuses create",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "statusesCreate"
      }
    },
    "/v1/partners/statuses/update": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "sortOrder": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000,
                    "format": "int64"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sortOrder": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "sortOrder",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersStatusesUpdate",
        "summary": "Partners statuses update",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "statusesUpdate"
      }
    },
    "/v1/partners/statuses/delete": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersStatusesDelete",
        "summary": "Partners statuses delete",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "statusesDelete"
      }
    },
    "/v1/partners/statuses/list": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "code",
                          "name",
                          "sortOrder",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersStatusesList",
        "summary": "Partners statuses list",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "statusesList"
      }
    },
    "/v1/partners/inquiries/create": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "contactName": {
                    "type": "string",
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "contactEmail": {
                    "type": "string",
                    "maxLength": 200,
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "contactPhone": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "subject": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "body": {
                    "type": "string",
                    "maxLength": 10000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "channel": {
                    "default": "other",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "assignedUserId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 10000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "subject"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contactName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contactEmail": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contactPhone": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "subject": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "body": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "channel": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "new",
                        "in_progress",
                        "closed"
                      ]
                    },
                    "assignedUserId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "closedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "partnerName",
                    "contactName",
                    "contactEmail",
                    "contactPhone",
                    "subject",
                    "body",
                    "channel",
                    "status",
                    "assignedUserId",
                    "notes",
                    "createdAt",
                    "updatedAt",
                    "closedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersInquiriesCreate",
        "summary": "Partners inquiries create",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "inquiriesCreate"
      }
    },
    "/v1/partners/inquiries/update": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "partnerId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "subject": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "body": {
                    "type": "string",
                    "maxLength": 10000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "channel": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "new",
                      "in_progress",
                      "closed"
                    ]
                  },
                  "assignedUserId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 10000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contactName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contactEmail": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contactPhone": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "subject": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "body": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "channel": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "new",
                        "in_progress",
                        "closed"
                      ]
                    },
                    "assignedUserId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "closedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "partnerName",
                    "contactName",
                    "contactEmail",
                    "contactPhone",
                    "subject",
                    "body",
                    "channel",
                    "status",
                    "assignedUserId",
                    "notes",
                    "createdAt",
                    "updatedAt",
                    "closedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersInquiriesUpdate",
        "summary": "Partners inquiries update",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "inquiriesUpdate"
      }
    },
    "/v1/partners/inquiries/get": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contactName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contactEmail": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contactPhone": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "subject": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "body": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "channel": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "new",
                        "in_progress",
                        "closed"
                      ]
                    },
                    "assignedUserId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "closedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "partnerName",
                    "contactName",
                    "contactEmail",
                    "contactPhone",
                    "subject",
                    "body",
                    "channel",
                    "status",
                    "assignedUserId",
                    "notes",
                    "createdAt",
                    "updatedAt",
                    "closedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersInquiriesGet",
        "summary": "Partners inquiries get",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "inquiriesGet"
      }
    },
    "/v1/partners/inquiries/list": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "contactName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "contactEmail": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "contactPhone": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "subject": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "body": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "channel": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "new",
                              "in_progress",
                              "closed"
                            ]
                          },
                          "assignedUserId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "closedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "partnerId",
                          "partnerName",
                          "contactName",
                          "contactEmail",
                          "contactPhone",
                          "subject",
                          "body",
                          "channel",
                          "status",
                          "assignedUserId",
                          "notes",
                          "createdAt",
                          "updatedAt",
                          "closedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersInquiriesList",
        "summary": "Partners inquiries list",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "inquiriesList"
      }
    },
    "/v1/partners/credit-check": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "additionalAmount": {
                    "default": "0",
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  }
                },
                "required": [
                  "partnerId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditLimit": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "openReceivables": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "additionalAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "totalExposure": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "available": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "exceeded": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "partnerId",
                    "partnerName",
                    "creditLimit",
                    "openReceivables",
                    "additionalAmount",
                    "totalExposure",
                    "available",
                    "exceeded"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "partnersCreditCheck",
        "summary": "Partners credit check",
        "x-fern-sdk-group-name": "partners",
        "x-fern-sdk-method-name": "creditCheck"
      }
    },
    "/v1/leads/create": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "contactName": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "email": {
                    "type": "string",
                    "maxLength": 200,
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "phone": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "website": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "countryCode": {
                    "type": "string",
                    "pattern": "^[A-Za-z]{2}$"
                  },
                  "sourceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "status": {
                    "default": "new",
                    "type": "string",
                    "enum": [
                      "new",
                      "contacted",
                      "qualified",
                      "lost"
                    ]
                  },
                  "estimatedValue": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "currency": {
                    "default": "EUR",
                    "type": "string",
                    "pattern": "^[A-Za-z]{3}$"
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 5000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "assignedUserId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documents": {
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "ref": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "name",
                        "ref"
                      ]
                    }
                  },
                  "notes": {
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 10000,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contactName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "email": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "phone": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "website": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "countryCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sourceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sourceName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "new",
                        "contacted",
                        "qualified",
                        "lost",
                        "converted"
                      ]
                    },
                    "estimatedValue": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "description": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "assignedUserId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "convertedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "contactName",
                    "email",
                    "phone",
                    "website",
                    "countryCode",
                    "sourceId",
                    "sourceName",
                    "status",
                    "estimatedValue",
                    "currency",
                    "description",
                    "assignedUserId",
                    "partnerId",
                    "convertedAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "leadsCreate",
        "summary": "Leads create",
        "x-fern-sdk-group-name": "leads",
        "x-fern-sdk-method-name": "create"
      }
    },
    "/v1/leads/get": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contactName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "email": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "phone": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "website": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "countryCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sourceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sourceName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "new",
                        "contacted",
                        "qualified",
                        "lost",
                        "converted"
                      ]
                    },
                    "estimatedValue": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "description": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "assignedUserId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "convertedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "contactName",
                    "email",
                    "phone",
                    "website",
                    "countryCode",
                    "sourceId",
                    "sourceName",
                    "status",
                    "estimatedValue",
                    "currency",
                    "description",
                    "assignedUserId",
                    "partnerId",
                    "convertedAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "leadsGet",
        "summary": "Leads get",
        "x-fern-sdk-group-name": "leads",
        "x-fern-sdk-method-name": "get"
      }
    },
    "/v1/leads/update": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "contactName": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "email": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 200,
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "phone": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "website": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "countryCode": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^[A-Za-z]{2}$"
                  },
                  "sourceId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "new",
                      "contacted",
                      "qualified",
                      "lost"
                    ]
                  },
                  "estimatedValue": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "currency": {
                    "type": "string",
                    "pattern": "^[A-Za-z]{3}$"
                  },
                  "description": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 5000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "assignedUserId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documents": {
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "ref": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "name",
                        "ref"
                      ]
                    }
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contactName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "email": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "phone": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "website": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "countryCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sourceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sourceName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "new",
                        "contacted",
                        "qualified",
                        "lost",
                        "converted"
                      ]
                    },
                    "estimatedValue": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "description": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "assignedUserId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "convertedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "contactName",
                    "email",
                    "phone",
                    "website",
                    "countryCode",
                    "sourceId",
                    "sourceName",
                    "status",
                    "estimatedValue",
                    "currency",
                    "description",
                    "assignedUserId",
                    "partnerId",
                    "convertedAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "leadsUpdate",
        "summary": "Leads update",
        "x-fern-sdk-group-name": "leads",
        "x-fern-sdk-method-name": "update"
      }
    },
    "/v1/leads/delete": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "leadsDelete",
        "summary": "Leads delete",
        "x-fern-sdk-group-name": "leads",
        "x-fern-sdk-method-name": "delete"
      }
    },
    "/v1/leads/list": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "contactName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "email": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "phone": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "website": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "countryCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sourceId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sourceName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "new",
                              "contacted",
                              "qualified",
                              "lost",
                              "converted"
                            ]
                          },
                          "estimatedValue": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "assignedUserId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "convertedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "contactName",
                          "email",
                          "phone",
                          "website",
                          "countryCode",
                          "sourceId",
                          "sourceName",
                          "status",
                          "estimatedValue",
                          "currency",
                          "description",
                          "assignedUserId",
                          "partnerId",
                          "convertedAt",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "leadsList",
        "summary": "Leads list",
        "x-fern-sdk-group-name": "leads",
        "x-fern-sdk-method-name": "list"
      }
    },
    "/v1/leads/notes/create": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "leadId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "body": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "leadId",
                  "body"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "leadId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "body": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "authorId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "leadId",
                    "body",
                    "authorId",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "leadsNotesCreate",
        "summary": "Leads notes create",
        "x-fern-sdk-group-name": "leads",
        "x-fern-sdk-method-name": "notesCreate"
      }
    },
    "/v1/leads/notes/delete": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "leadsNotesDelete",
        "summary": "Leads notes delete",
        "x-fern-sdk-group-name": "leads",
        "x-fern-sdk-method-name": "notesDelete"
      }
    },
    "/v1/leads/notes/list": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "leadId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "leadId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "leadId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "body": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "authorId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "leadId",
                          "body",
                          "authorId",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "leadsNotesList",
        "summary": "Leads notes list",
        "x-fern-sdk-group-name": "leads",
        "x-fern-sdk-method-name": "notesList"
      }
    },
    "/v1/leads/files/list": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "leadId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "leadId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "mimeType": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sizeBytes": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "fileName",
                          "mimeType",
                          "sizeBytes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "leadsFilesList",
        "summary": "Leads files list",
        "x-fern-sdk-group-name": "leads",
        "x-fern-sdk-method-name": "filesList"
      }
    },
    "/v1/leads/sources/create": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isActive": {
                    "default": true,
                    "type": "boolean"
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "isActive",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "leadsSourcesCreate",
        "summary": "Leads sources create",
        "x-fern-sdk-group-name": "leads",
        "x-fern-sdk-method-name": "sourcesCreate"
      }
    },
    "/v1/leads/sources/update": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isActive": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "isActive",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "leadsSourcesUpdate",
        "summary": "Leads sources update",
        "x-fern-sdk-group-name": "leads",
        "x-fern-sdk-method-name": "sourcesUpdate"
      }
    },
    "/v1/leads/sources/delete": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "leadsSourcesDelete",
        "summary": "Leads sources delete",
        "x-fern-sdk-group-name": "leads",
        "x-fern-sdk-method-name": "sourcesDelete"
      }
    },
    "/v1/leads/sources/list": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isActive": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "isActive",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "leadsSourcesList",
        "summary": "Leads sources list",
        "x-fern-sdk-group-name": "leads",
        "x-fern-sdk-method-name": "sourcesList"
      }
    },
    "/v1/leads/sources/options": {
      "post": {
        "tags": [
          "partners"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "name"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "leadsSourcesOptions",
        "summary": "Leads sources options",
        "x-fern-sdk-group-name": "leads",
        "x-fern-sdk-method-name": "sourcesOptions"
      }
    },
    "/v1/leads/convert": {
      "post": {
        "tags": [
          "partners"
        ],
        "description": "Create a customer partner from the lead, move the lead files to the partner, copy the lead notes into the partner notes and mark the lead as converted.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "partnerType": {
                    "default": "company",
                    "type": "string",
                    "enum": [
                      "company",
                      "person"
                    ]
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "vatCode": {
                    "type": "string",
                    "minLength": 4,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "lead": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "name": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "contactName": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "email": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "phone": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "website": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "countryCode": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "sourceId": {
                          "nullable": true,
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "sourceName": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "new",
                            "contacted",
                            "qualified",
                            "lost",
                            "converted"
                          ]
                        },
                        "estimatedValue": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "currency": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "description": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "assignedUserId": {
                          "nullable": true,
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "partnerId": {
                          "nullable": true,
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "convertedAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "contactName",
                        "email",
                        "phone",
                        "website",
                        "countryCode",
                        "sourceId",
                        "sourceName",
                        "status",
                        "estimatedValue",
                        "currency",
                        "description",
                        "assignedUserId",
                        "partnerId",
                        "convertedAt",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "lead",
                    "partnerId"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "leadsConvert",
        "summary": "Leads convert",
        "x-fern-sdk-group-name": "leads",
        "x-fern-sdk-method-name": "convert"
      }
    },
    "/v1/catalog/items/create": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "default": "product",
                    "type": "string",
                    "enum": [
                      "product",
                      "service",
                      "set"
                    ]
                  },
                  "tracking": {
                    "default": "none",
                    "type": "string",
                    "enum": [
                      "none",
                      "lot",
                      "serial"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "barcode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "unit": {
                    "default": "vnt",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "vatClassifierCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "vatRatePercent": {
                    "type": "string",
                    "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "salePriceExclVat": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "purchasePriceExclVat": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "cnCode": {
                    "type": "string",
                    "pattern": "^\\d{8}$"
                  },
                  "originCountry": {
                    "type": "string",
                    "pattern": "^[A-Z]{2}$"
                  },
                  "netMassKg": {
                    "type": "string",
                    "pattern": "^\\d{1,8}(\\.\\d{1,6})?$",
                    "example": "121.000000"
                  },
                  "supplementaryUnit": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "supplementaryQtyPerUnit": {
                    "type": "string",
                    "pattern": "^\\d{1,8}(\\.\\d{1,6})?$",
                    "example": "121.000000"
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "groupId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "attributes": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string",
                      "maxLength": 500,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "maxProperties": 100
                  },
                  "documentRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "translations": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 2000,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "maxProperties": 100
                  },
                  "components": {
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "itemId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "quantity": {
                          "type": "string",
                          "pattern": "^\\d{1,9}(\\.\\d{1,3})?$",
                          "example": "121.000"
                        }
                      },
                      "required": [
                        "itemId",
                        "quantity"
                      ]
                    }
                  },
                  "kindId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "saleAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "purchaseAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "expenseAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "manufacturer": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "grossMassKg": {
                    "type": "string",
                    "pattern": "^\\d{1,8}(\\.\\d{1,6})?$",
                    "example": "121.000000"
                  },
                  "minQuantity": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "costPrice": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "isFreePrice": {
                    "type": "boolean"
                  },
                  "externalId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isReturnable": {
                    "type": "boolean"
                  },
                  "commentRequired": {
                    "type": "boolean"
                  },
                  "priceFrom": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "priceTo": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "minPrice": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "discountPercent": {
                    "type": "string",
                    "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "maxDiscountPercent": {
                    "type": "string",
                    "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "loyaltyPoints": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "department": {
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "ageRestriction": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 21,
                    "format": "int64"
                  },
                  "packageQuantity": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "taraCode": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "certificateNumber": {
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "certificateDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "validFrom": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "validTo": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "posFlags": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "boolean"
                    },
                    "maxProperties": 100
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "product",
                        "service",
                        "set"
                      ]
                    },
                    "tracking": {
                      "type": "string",
                      "enum": [
                        "none",
                        "lot",
                        "serial"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "barcode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "unit": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatClassifierCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatRatePercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "salePriceExclVat": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "purchasePriceExclVat": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "cnCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "originCountry": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netMassKg": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "supplementaryUnit": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "supplementaryQtyPerUnit": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "description": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "groupId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "attributes": {
                      "nullable": true,
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "translations": {
                      "nullable": true,
                      "type": "object",
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name"
                        ],
                        "additionalProperties": false
                      },
                      "maxProperties": 100
                    },
                    "components": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "itemId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "itemId",
                          "itemName",
                          "quantity"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "kindId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "saleAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "purchaseAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "expenseAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "manufacturer": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossMassKg": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "minQuantity": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "costPrice": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isFreePrice": {
                      "type": "boolean"
                    },
                    "externalId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isReturnable": {
                      "type": "boolean"
                    },
                    "commentRequired": {
                      "type": "boolean"
                    },
                    "priceFrom": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "priceTo": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "minPrice": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "discountPercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "maxDiscountPercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "loyaltyPoints": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "department": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "ageRestriction": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "packageQuantity": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "taraCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "certificateNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "certificateDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "validFrom": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "validTo": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "posFlags": {
                      "nullable": true,
                      "type": "object",
                      "additionalProperties": {
                        "type": "boolean"
                      },
                      "maxProperties": 100
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "tracking",
                    "name",
                    "code",
                    "barcode",
                    "unit",
                    "vatClassifierCode",
                    "vatRatePercent",
                    "salePriceExclVat",
                    "purchasePriceExclVat",
                    "cnCode",
                    "originCountry",
                    "netMassKg",
                    "supplementaryUnit",
                    "supplementaryQtyPerUnit",
                    "description",
                    "groupId",
                    "attributes",
                    "documentRef",
                    "translations",
                    "components",
                    "kindId",
                    "saleAccountCode",
                    "purchaseAccountCode",
                    "expenseAccountCode",
                    "manufacturer",
                    "grossMassKg",
                    "minQuantity",
                    "costPrice",
                    "isFreePrice",
                    "externalId",
                    "isReturnable",
                    "commentRequired",
                    "priceFrom",
                    "priceTo",
                    "minPrice",
                    "discountPercent",
                    "maxDiscountPercent",
                    "loyaltyPoints",
                    "department",
                    "ageRestriction",
                    "packageQuantity",
                    "taraCode",
                    "certificateNumber",
                    "certificateDate",
                    "validFrom",
                    "validTo",
                    "posFlags",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogItemsCreate",
        "summary": "Catalog items create",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "itemsCreate"
      }
    },
    "/v1/catalog/items/get": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "product",
                        "service",
                        "set"
                      ]
                    },
                    "tracking": {
                      "type": "string",
                      "enum": [
                        "none",
                        "lot",
                        "serial"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "barcode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "unit": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatClassifierCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatRatePercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "salePriceExclVat": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "purchasePriceExclVat": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "cnCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "originCountry": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netMassKg": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "supplementaryUnit": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "supplementaryQtyPerUnit": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "description": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "groupId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "attributes": {
                      "nullable": true,
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "translations": {
                      "nullable": true,
                      "type": "object",
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name"
                        ],
                        "additionalProperties": false
                      },
                      "maxProperties": 100
                    },
                    "components": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "itemId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "itemId",
                          "itemName",
                          "quantity"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "kindId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "saleAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "purchaseAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "expenseAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "manufacturer": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossMassKg": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "minQuantity": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "costPrice": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isFreePrice": {
                      "type": "boolean"
                    },
                    "externalId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isReturnable": {
                      "type": "boolean"
                    },
                    "commentRequired": {
                      "type": "boolean"
                    },
                    "priceFrom": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "priceTo": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "minPrice": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "discountPercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "maxDiscountPercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "loyaltyPoints": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "department": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "ageRestriction": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "packageQuantity": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "taraCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "certificateNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "certificateDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "validFrom": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "validTo": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "posFlags": {
                      "nullable": true,
                      "type": "object",
                      "additionalProperties": {
                        "type": "boolean"
                      },
                      "maxProperties": 100
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "tracking",
                    "name",
                    "code",
                    "barcode",
                    "unit",
                    "vatClassifierCode",
                    "vatRatePercent",
                    "salePriceExclVat",
                    "purchasePriceExclVat",
                    "cnCode",
                    "originCountry",
                    "netMassKg",
                    "supplementaryUnit",
                    "supplementaryQtyPerUnit",
                    "description",
                    "groupId",
                    "attributes",
                    "documentRef",
                    "translations",
                    "components",
                    "kindId",
                    "saleAccountCode",
                    "purchaseAccountCode",
                    "expenseAccountCode",
                    "manufacturer",
                    "grossMassKg",
                    "minQuantity",
                    "costPrice",
                    "isFreePrice",
                    "externalId",
                    "isReturnable",
                    "commentRequired",
                    "priceFrom",
                    "priceTo",
                    "minPrice",
                    "discountPercent",
                    "maxDiscountPercent",
                    "loyaltyPoints",
                    "department",
                    "ageRestriction",
                    "packageQuantity",
                    "taraCode",
                    "certificateNumber",
                    "certificateDate",
                    "validFrom",
                    "validTo",
                    "posFlags",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogItemsGet",
        "summary": "Catalog items get",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "itemsGet"
      }
    },
    "/v1/catalog/items/update": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "product",
                      "service",
                      "set"
                    ]
                  },
                  "tracking": {
                    "type": "string",
                    "enum": [
                      "none",
                      "lot",
                      "serial"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "barcode": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "unit": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "vatClassifierCode": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "vatRatePercent": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "salePriceExclVat": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "purchasePriceExclVat": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "cnCode": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{8}$"
                  },
                  "originCountry": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^[A-Z]{2}$"
                  },
                  "netMassKg": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,8}(\\.\\d{1,6})?$",
                    "example": "121.000000"
                  },
                  "supplementaryUnit": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "supplementaryQtyPerUnit": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,8}(\\.\\d{1,6})?$",
                    "example": "121.000000"
                  },
                  "description": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "groupId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "attributes": {
                    "nullable": true,
                    "type": "object",
                    "additionalProperties": {
                      "type": "string",
                      "maxLength": 500,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "maxProperties": 100
                  },
                  "documentRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "translations": {
                    "nullable": true,
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 2000,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "maxProperties": 100
                  },
                  "components": {
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "itemId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "quantity": {
                          "type": "string",
                          "pattern": "^\\d{1,9}(\\.\\d{1,3})?$",
                          "example": "121.000"
                        }
                      },
                      "required": [
                        "itemId",
                        "quantity"
                      ]
                    }
                  },
                  "kindId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "saleAccountCode": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "purchaseAccountCode": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "expenseAccountCode": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "manufacturer": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "grossMassKg": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,8}(\\.\\d{1,6})?$",
                    "example": "121.000000"
                  },
                  "minQuantity": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "costPrice": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "isFreePrice": {
                    "type": "boolean"
                  },
                  "externalId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isReturnable": {
                    "type": "boolean"
                  },
                  "commentRequired": {
                    "type": "boolean"
                  },
                  "priceFrom": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "priceTo": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "minPrice": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "discountPercent": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "maxDiscountPercent": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "loyaltyPoints": {
                    "nullable": true,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "department": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "ageRestriction": {
                    "nullable": true,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 21,
                    "format": "int64"
                  },
                  "packageQuantity": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "taraCode": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "certificateNumber": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "certificateDate": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "validFrom": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "validTo": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "posFlags": {
                    "nullable": true,
                    "type": "object",
                    "additionalProperties": {
                      "type": "boolean"
                    },
                    "maxProperties": 100
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "product",
                        "service",
                        "set"
                      ]
                    },
                    "tracking": {
                      "type": "string",
                      "enum": [
                        "none",
                        "lot",
                        "serial"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "barcode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "unit": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatClassifierCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatRatePercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "salePriceExclVat": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "purchasePriceExclVat": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "cnCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "originCountry": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netMassKg": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "supplementaryUnit": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "supplementaryQtyPerUnit": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "description": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "groupId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "attributes": {
                      "nullable": true,
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "translations": {
                      "nullable": true,
                      "type": "object",
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name"
                        ],
                        "additionalProperties": false
                      },
                      "maxProperties": 100
                    },
                    "components": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "itemId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "itemId",
                          "itemName",
                          "quantity"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "kindId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "saleAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "purchaseAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "expenseAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "manufacturer": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossMassKg": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "minQuantity": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "costPrice": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isFreePrice": {
                      "type": "boolean"
                    },
                    "externalId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isReturnable": {
                      "type": "boolean"
                    },
                    "commentRequired": {
                      "type": "boolean"
                    },
                    "priceFrom": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "priceTo": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "minPrice": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "discountPercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "maxDiscountPercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "loyaltyPoints": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "department": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "ageRestriction": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "packageQuantity": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "taraCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "certificateNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "certificateDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "validFrom": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "validTo": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "posFlags": {
                      "nullable": true,
                      "type": "object",
                      "additionalProperties": {
                        "type": "boolean"
                      },
                      "maxProperties": 100
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "tracking",
                    "name",
                    "code",
                    "barcode",
                    "unit",
                    "vatClassifierCode",
                    "vatRatePercent",
                    "salePriceExclVat",
                    "purchasePriceExclVat",
                    "cnCode",
                    "originCountry",
                    "netMassKg",
                    "supplementaryUnit",
                    "supplementaryQtyPerUnit",
                    "description",
                    "groupId",
                    "attributes",
                    "documentRef",
                    "translations",
                    "components",
                    "kindId",
                    "saleAccountCode",
                    "purchaseAccountCode",
                    "expenseAccountCode",
                    "manufacturer",
                    "grossMassKg",
                    "minQuantity",
                    "costPrice",
                    "isFreePrice",
                    "externalId",
                    "isReturnable",
                    "commentRequired",
                    "priceFrom",
                    "priceTo",
                    "minPrice",
                    "discountPercent",
                    "maxDiscountPercent",
                    "loyaltyPoints",
                    "department",
                    "ageRestriction",
                    "packageQuantity",
                    "taraCode",
                    "certificateNumber",
                    "certificateDate",
                    "validFrom",
                    "validTo",
                    "posFlags",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogItemsUpdate",
        "summary": "Catalog items update",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "itemsUpdate"
      }
    },
    "/v1/catalog/items/delete": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogItemsDelete",
        "summary": "Catalog items delete",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "itemsDelete"
      }
    },
    "/v1/catalog/items/list": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "product",
                              "service",
                              "set"
                            ]
                          },
                          "tracking": {
                            "type": "string",
                            "enum": [
                              "none",
                              "lot",
                              "serial"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "barcode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatClassifierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "salePriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "purchasePriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "cnCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "originCountry": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "netMassKg": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "supplementaryUnit": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "supplementaryQtyPerUnit": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "groupId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "attributes": {
                            "nullable": true,
                            "type": "object",
                            "additionalProperties": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "maxProperties": 100
                          },
                          "documentRef": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "translations": {
                            "nullable": true,
                            "type": "object",
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "description": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            "maxProperties": 100
                          },
                          "components": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "itemId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64,
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "itemName": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "quantity": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "itemId",
                                "itemName",
                                "quantity"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "kindId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "saleAccountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "purchaseAccountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "expenseAccountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "manufacturer": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "grossMassKg": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "minQuantity": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costPrice": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isFreePrice": {
                            "type": "boolean"
                          },
                          "externalId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isReturnable": {
                            "type": "boolean"
                          },
                          "commentRequired": {
                            "type": "boolean"
                          },
                          "priceFrom": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "priceTo": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "minPrice": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "discountPercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "maxDiscountPercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "loyaltyPoints": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "department": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ageRestriction": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "packageQuantity": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "taraCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "certificateNumber": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "certificateDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "validFrom": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "validTo": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "posFlags": {
                            "nullable": true,
                            "type": "object",
                            "additionalProperties": {
                              "type": "boolean"
                            },
                            "maxProperties": 100
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "type",
                          "tracking",
                          "name",
                          "code",
                          "barcode",
                          "unit",
                          "vatClassifierCode",
                          "vatRatePercent",
                          "salePriceExclVat",
                          "purchasePriceExclVat",
                          "cnCode",
                          "originCountry",
                          "netMassKg",
                          "supplementaryUnit",
                          "supplementaryQtyPerUnit",
                          "description",
                          "groupId",
                          "attributes",
                          "documentRef",
                          "translations",
                          "components",
                          "kindId",
                          "saleAccountCode",
                          "purchaseAccountCode",
                          "expenseAccountCode",
                          "manufacturer",
                          "grossMassKg",
                          "minQuantity",
                          "costPrice",
                          "isFreePrice",
                          "externalId",
                          "isReturnable",
                          "commentRequired",
                          "priceFrom",
                          "priceTo",
                          "minPrice",
                          "discountPercent",
                          "maxDiscountPercent",
                          "loyaltyPoints",
                          "department",
                          "ageRestriction",
                          "packageQuantity",
                          "taraCode",
                          "certificateNumber",
                          "certificateDate",
                          "validFrom",
                          "validTo",
                          "posFlags",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogItemsList",
        "summary": "Catalog items list",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "itemsList"
      }
    },
    "/v1/catalog/items/files/list": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "itemId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "itemId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "entity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "entityId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "mimeType": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sizeBytes": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "sha256": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "storageKey": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "entity",
                          "entityId",
                          "fileName",
                          "mimeType",
                          "sizeBytes",
                          "sha256",
                          "storageKey",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogItemsFilesList",
        "summary": "Catalog items files list",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "itemsFilesList"
      }
    },
    "/v1/catalog/items/kinds/create": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "saftType": {
                    "default": "goods",
                    "type": "string",
                    "enum": [
                      "goods",
                      "service",
                      "fixed_asset",
                      "other"
                    ]
                  },
                  "quantityAccounting": {
                    "default": true,
                    "type": "boolean"
                  },
                  "sortOrder": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000,
                    "format": "int64"
                  }
                },
                "required": [
                  "code",
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "saftType": {
                      "type": "string",
                      "enum": [
                        "goods",
                        "service",
                        "fixed_asset",
                        "other"
                      ]
                    },
                    "quantityAccounting": {
                      "type": "boolean"
                    },
                    "sortOrder": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "saftType",
                    "quantityAccounting",
                    "sortOrder",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogItemsKindsCreate",
        "summary": "Catalog items kinds create",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "itemsKindsCreate"
      }
    },
    "/v1/catalog/items/kinds/update": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "saftType": {
                    "type": "string",
                    "enum": [
                      "goods",
                      "service",
                      "fixed_asset",
                      "other"
                    ]
                  },
                  "quantityAccounting": {
                    "type": "boolean"
                  },
                  "sortOrder": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000,
                    "format": "int64"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "saftType": {
                      "type": "string",
                      "enum": [
                        "goods",
                        "service",
                        "fixed_asset",
                        "other"
                      ]
                    },
                    "quantityAccounting": {
                      "type": "boolean"
                    },
                    "sortOrder": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "saftType",
                    "quantityAccounting",
                    "sortOrder",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogItemsKindsUpdate",
        "summary": "Catalog items kinds update",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "itemsKindsUpdate"
      }
    },
    "/v1/catalog/items/kinds/delete": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogItemsKindsDelete",
        "summary": "Catalog items kinds delete",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "itemsKindsDelete"
      }
    },
    "/v1/catalog/items/kinds/list": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "saftType": {
                            "type": "string",
                            "enum": [
                              "goods",
                              "service",
                              "fixed_asset",
                              "other"
                            ]
                          },
                          "quantityAccounting": {
                            "type": "boolean"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "code",
                          "name",
                          "saftType",
                          "quantityAccounting",
                          "sortOrder",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogItemsKindsList",
        "summary": "Catalog items kinds list",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "itemsKindsList"
      }
    },
    "/v1/catalog/units/create": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isActive": {
                    "default": true,
                    "type": "boolean"
                  }
                },
                "required": [
                  "code",
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "isActive",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogUnitsCreate",
        "summary": "Catalog units create",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "unitsCreate"
      }
    },
    "/v1/catalog/units/update": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isActive": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "isActive",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogUnitsUpdate",
        "summary": "Catalog units update",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "unitsUpdate"
      }
    },
    "/v1/catalog/units/delete": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogUnitsDelete",
        "summary": "Catalog units delete",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "unitsDelete"
      }
    },
    "/v1/catalog/units/list": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isActive": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "code",
                          "name",
                          "isActive",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogUnitsList",
        "summary": "Catalog units list",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "unitsList"
      }
    },
    "/v1/catalog/units/options": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "locale": {
                    "default": "en",
                    "type": "string",
                    "enum": [
                      "en",
                      "lt",
                      "de"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "source": {
                            "type": "string",
                            "enum": [
                              "company",
                              "global"
                            ]
                          }
                        },
                        "required": [
                          "code",
                          "name",
                          "source"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogUnitsOptions",
        "summary": "Catalog units options",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "unitsOptions"
      }
    },
    "/v1/catalog/item-groups/create": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "parentId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "code",
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "parentId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "parentId",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogItemGroupsCreate",
        "summary": "Catalog item groups create",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "itemGroupsCreate"
      }
    },
    "/v1/catalog/item-groups/update": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "parentId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "parentId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "parentId",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogItemGroupsUpdate",
        "summary": "Catalog item groups update",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "itemGroupsUpdate"
      }
    },
    "/v1/catalog/item-groups/delete": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogItemGroupsDelete",
        "summary": "Catalog item groups delete",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "itemGroupsDelete"
      }
    },
    "/v1/catalog/item-groups/list": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "parentId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "code",
                          "name",
                          "parentId",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogItemGroupsList",
        "summary": "Catalog item groups list",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "itemGroupsList"
      }
    },
    "/v1/catalog/items/suppliers/upsert": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "itemId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "supplierCode": {
                    "type": "string",
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "purchasePriceExclVat": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "itemId",
                  "partnerId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "itemId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "supplierCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "purchasePriceExclVat": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "itemId",
                    "partnerId",
                    "partnerName",
                    "supplierCode",
                    "purchasePriceExclVat",
                    "currency",
                    "notes",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogItemsSuppliersUpsert",
        "summary": "Catalog items suppliers upsert",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "itemsSuppliersUpsert"
      }
    },
    "/v1/catalog/items/suppliers/list": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "itemId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "supplierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "purchasePriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "partnerId",
                          "partnerName",
                          "supplierCode",
                          "purchasePriceExclVat",
                          "currency",
                          "notes",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogItemsSuppliersList",
        "summary": "Catalog items suppliers list",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "itemsSuppliersList"
      }
    },
    "/v1/catalog/items/suppliers/delete": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogItemsSuppliersDelete",
        "summary": "Catalog items suppliers delete",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "itemsSuppliersDelete"
      }
    },
    "/v1/catalog/price-lists/create": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isActive": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "code",
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "currency",
                    "isActive",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogPriceListsCreate",
        "summary": "Catalog price lists create",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "priceListsCreate"
      }
    },
    "/v1/catalog/price-lists/update": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isActive": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "currency",
                    "isActive",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogPriceListsUpdate",
        "summary": "Catalog price lists update",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "priceListsUpdate"
      }
    },
    "/v1/catalog/price-lists/list": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isActive": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "code",
                          "name",
                          "currency",
                          "isActive",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogPriceListsList",
        "summary": "Catalog price lists list",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "priceListsList"
      }
    },
    "/v1/catalog/price-lists/items/set": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "priceListId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "items": {
                    "minItems": 1,
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "itemId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "unitPriceExclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        }
                      },
                      "required": [
                        "itemId",
                        "unitPriceExclVat"
                      ]
                    }
                  }
                },
                "required": [
                  "priceListId",
                  "items"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "updated": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    }
                  },
                  "required": [
                    "updated"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogPriceListsItemsSet",
        "summary": "Catalog price lists items set",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "priceListsItemsSet"
      }
    },
    "/v1/catalog/price-lists/items/list": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "priceListId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "priceListId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "itemId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "itemId",
                          "itemName",
                          "itemCode",
                          "unitPriceExclVat"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogPriceListsItemsList",
        "summary": "Catalog price lists items list",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "priceListsItemsList"
      }
    },
    "/v1/catalog/price-lists/items/delete": {
      "post": {
        "tags": [
          "catalog"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "priceListId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "itemId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "priceListId",
                  "itemId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "catalogPriceListsItemsDelete",
        "summary": "Catalog price lists items delete",
        "x-fern-sdk-group-name": "catalog",
        "x-fern-sdk-method-name": "priceListsItemsDelete"
      }
    },
    "/v1/sales/invoices/create": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "type": {
                    "default": "invoice",
                    "type": "string",
                    "enum": [
                      "invoice",
                      "credit_note",
                      "proforma",
                      "advance"
                    ]
                  },
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "issueDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "dueDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "creditedInvoiceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "creditedInvoiceReference": {
                    "description": "Number of an original invoice issued outside Nordlet; give it with creditedInvoiceDate",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "creditedInvoiceDate": {
                    "description": "Issue date of the original invoice issued outside Nordlet",
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "agreementId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "vatScheme": {
                    "type": "string",
                    "enum": [
                      "domestic",
                      "intra_eu_b2b",
                      "reverse_charge",
                      "oss_union",
                      "ioss",
                      "marketplace_deemed",
                      "export",
                      "out_of_scope",
                      "sme_exempt"
                    ]
                  },
                  "intrastatTransportMode": {
                    "type": "string",
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "intrastatDeliveryTerms": {
                    "type": "string",
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "intrastatRegion": {
                    "type": "string",
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "intrastatNatureOfTransaction": {
                    "type": "string",
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "vatCountryCode": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "deemedSupplier": {
                    "type": "boolean"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documentRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "operationTypeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documentSeriesId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "seriesLabel": {
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "orderNumber": {
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "issuedByName": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "issuedByTitle": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "receivedByName": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "receivedByTitle": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "discountPercent": {
                    "default": "0",
                    "type": "string",
                    "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "lines": {
                    "minItems": 1,
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "itemId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "unit": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "quantity": {
                          "default": 1,
                          "anyOf": [
                            {
                              "type": "number",
                              "minimum": 0,
                              "exclusiveMinimum": true
                            },
                            {
                              "type": "string",
                              "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                              "example": "121.0000"
                            }
                          ]
                        },
                        "unitPriceExclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "unitPriceInclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "vatRatePercent": {
                          "type": "string",
                          "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        },
                        "vatClassifierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "costCenterId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "projectId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "recognition": {
                          "type": "object",
                          "properties": {
                            "method": {
                              "default": "point_in_time",
                              "type": "string",
                              "enum": [
                                "point_in_time",
                                "ratable",
                                "milestone",
                                "percent_complete"
                              ]
                            },
                            "startDate": {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                              "format": "date",
                              "example": "2026-07-01"
                            },
                            "endDate": {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                              "format": "date",
                              "example": "2026-07-01"
                            },
                            "milestones": {
                              "minItems": 1,
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "description": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 300,
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "expectedDate": {
                                    "type": "string",
                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                                    "format": "date",
                                    "example": "2026-07-01"
                                  },
                                  "percent": {
                                    "type": "string",
                                    "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                                    "example": "121.00"
                                  }
                                },
                                "required": [
                                  "description",
                                  "percent"
                                ]
                              }
                            }
                          }
                        },
                        "vatExemptionBasis": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "standaloneSellingPrice": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "refundEstimatePercent": {
                          "type": "string",
                          "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "partnerId",
                  "lines"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "invoice",
                        "credit_note",
                        "proforma",
                        "advance"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "issued"
                      ]
                    },
                    "paymentStatus": {
                      "type": "string",
                      "enum": [
                        "unpaid",
                        "partial",
                        "paid"
                      ]
                    },
                    "series": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "number": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "fullNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issueDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "dueDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fxRate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "paidAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "appliedToInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceReference": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "agreementId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatScheme": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "domestic",
                        "intra_eu_b2b",
                        "reverse_charge",
                        "oss_union",
                        "ioss",
                        "marketplace_deemed",
                        "export",
                        "out_of_scope",
                        "sme_exempt"
                      ]
                    },
                    "intrastatTransportMode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatDeliveryTerms": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatRegion": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatNatureOfTransaction": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatCountryCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "deemedSupplier": {
                      "type": "boolean"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "operationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentSeriesId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "seriesLabel": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "discountPercent": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "orderNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issuedByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issuedByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "receivedByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "receivedByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lockedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lockedBy": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payToken": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceSystem": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceTransport": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceMessageId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceStatus": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceDetail": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceSentAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "einvoiceCheckedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceInclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatClassifierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatExemptionBasis": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineGross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "recognitionMethod": {
                            "type": "string",
                            "enum": [
                              "point_in_time",
                              "ratable",
                              "milestone",
                              "percent_complete"
                            ]
                          },
                          "recognitionStartDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "recognitionEndDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "recognitionMilestones": {
                            "nullable": true,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "description": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "expectedDate": {
                                  "nullable": true,
                                  "type": "string",
                                  "format": "date",
                                  "example": "2026-07-01"
                                },
                                "percent": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "description",
                                "expectedDate",
                                "percent"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "standaloneSellingPrice": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "allocatedNet": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "refundEstimatePercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "unitPriceExclVat",
                          "unitPriceInclVat",
                          "vatRatePercent",
                          "vatClassifierCode",
                          "vatExemptionBasis",
                          "costCenterId",
                          "projectId",
                          "lineNet",
                          "lineVat",
                          "lineGross",
                          "sortOrder",
                          "recognitionMethod",
                          "recognitionStartDate",
                          "recognitionEndDate",
                          "recognitionMilestones",
                          "standaloneSellingPrice",
                          "allocatedNet",
                          "refundEstimatePercent"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "vatEvidence": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "capturedAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "issueDate": {
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "scheme": {
                          "type": "object",
                          "properties": {
                            "vatScheme": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatCountryCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "deemedSupplier": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "vatScheme",
                            "vatCountryCode",
                            "deemedSupplier"
                          ],
                          "additionalProperties": false
                        },
                        "partner": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatValid": {
                              "nullable": true,
                              "type": "boolean"
                            },
                            "vatValidatedAt": {
                              "nullable": true,
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "id",
                            "vatCode",
                            "vatValid",
                            "vatValidatedAt"
                          ],
                          "additionalProperties": false
                        },
                        "vies": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "valid": {
                              "type": "boolean"
                            },
                            "countryCode": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatNumber": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "name": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "address": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "requestIdentifier": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "checkedAt": {
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "valid",
                            "countryCode",
                            "vatNumber",
                            "name",
                            "address",
                            "requestIdentifier",
                            "checkedAt"
                          ],
                          "additionalProperties": false
                        },
                        "location": {
                          "type": "object",
                          "properties": {
                            "billingCountryCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "source": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "billingCountryCode",
                            "source"
                          ],
                          "additionalProperties": false
                        },
                        "rateTable": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "importId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "situationOn": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "trigger": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "startedAt": {
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "importId",
                            "situationOn",
                            "trigger",
                            "startedAt"
                          ],
                          "additionalProperties": false
                        },
                        "rates": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "ratePercent": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "country": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "category": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "ratePercent",
                              "country",
                              "category"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "capturedAt",
                        "issueDate",
                        "scheme",
                        "partner",
                        "vies",
                        "location",
                        "rateTable",
                        "rates"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "type",
                    "status",
                    "paymentStatus",
                    "series",
                    "number",
                    "fullNumber",
                    "issueDate",
                    "dueDate",
                    "currency",
                    "fxRate",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "paidAmount",
                    "journalTransactionId",
                    "appliedToInvoiceId",
                    "creditedInvoiceId",
                    "creditedInvoiceReference",
                    "creditedInvoiceDate",
                    "agreementId",
                    "vatScheme",
                    "intrastatTransportMode",
                    "intrastatDeliveryTerms",
                    "intrastatRegion",
                    "intrastatNatureOfTransaction",
                    "vatCountryCode",
                    "deemedSupplier",
                    "notes",
                    "documentRef",
                    "operationTypeId",
                    "documentSeriesId",
                    "seriesLabel",
                    "discountPercent",
                    "orderNumber",
                    "issuedByName",
                    "issuedByTitle",
                    "receivedByName",
                    "receivedByTitle",
                    "lockedAt",
                    "lockedBy",
                    "payToken",
                    "einvoiceSystem",
                    "einvoiceTransport",
                    "einvoiceMessageId",
                    "einvoiceNumber",
                    "einvoiceStatus",
                    "einvoiceDetail",
                    "einvoiceSentAt",
                    "einvoiceCheckedAt",
                    "createdAt",
                    "updatedAt",
                    "lines",
                    "vatEvidence"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesInvoicesCreate",
        "summary": "Sales invoices create",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "invoicesCreate"
      }
    },
    "/v1/sales/invoices/get": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "invoice",
                        "credit_note",
                        "proforma",
                        "advance"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "issued"
                      ]
                    },
                    "paymentStatus": {
                      "type": "string",
                      "enum": [
                        "unpaid",
                        "partial",
                        "paid"
                      ]
                    },
                    "series": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "number": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "fullNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issueDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "dueDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fxRate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "paidAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "appliedToInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceReference": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "agreementId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatScheme": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "domestic",
                        "intra_eu_b2b",
                        "reverse_charge",
                        "oss_union",
                        "ioss",
                        "marketplace_deemed",
                        "export",
                        "out_of_scope",
                        "sme_exempt"
                      ]
                    },
                    "intrastatTransportMode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatDeliveryTerms": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatRegion": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatNatureOfTransaction": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatCountryCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "deemedSupplier": {
                      "type": "boolean"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "operationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentSeriesId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "seriesLabel": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "discountPercent": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "orderNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issuedByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issuedByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "receivedByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "receivedByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lockedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lockedBy": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payToken": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceSystem": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceTransport": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceMessageId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceStatus": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceDetail": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceSentAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "einvoiceCheckedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceInclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatClassifierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatExemptionBasis": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineGross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "recognitionMethod": {
                            "type": "string",
                            "enum": [
                              "point_in_time",
                              "ratable",
                              "milestone",
                              "percent_complete"
                            ]
                          },
                          "recognitionStartDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "recognitionEndDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "recognitionMilestones": {
                            "nullable": true,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "description": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "expectedDate": {
                                  "nullable": true,
                                  "type": "string",
                                  "format": "date",
                                  "example": "2026-07-01"
                                },
                                "percent": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "description",
                                "expectedDate",
                                "percent"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "standaloneSellingPrice": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "allocatedNet": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "refundEstimatePercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "unitPriceExclVat",
                          "unitPriceInclVat",
                          "vatRatePercent",
                          "vatClassifierCode",
                          "vatExemptionBasis",
                          "costCenterId",
                          "projectId",
                          "lineNet",
                          "lineVat",
                          "lineGross",
                          "sortOrder",
                          "recognitionMethod",
                          "recognitionStartDate",
                          "recognitionEndDate",
                          "recognitionMilestones",
                          "standaloneSellingPrice",
                          "allocatedNet",
                          "refundEstimatePercent"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "vatEvidence": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "capturedAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "issueDate": {
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "scheme": {
                          "type": "object",
                          "properties": {
                            "vatScheme": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatCountryCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "deemedSupplier": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "vatScheme",
                            "vatCountryCode",
                            "deemedSupplier"
                          ],
                          "additionalProperties": false
                        },
                        "partner": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatValid": {
                              "nullable": true,
                              "type": "boolean"
                            },
                            "vatValidatedAt": {
                              "nullable": true,
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "id",
                            "vatCode",
                            "vatValid",
                            "vatValidatedAt"
                          ],
                          "additionalProperties": false
                        },
                        "vies": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "valid": {
                              "type": "boolean"
                            },
                            "countryCode": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatNumber": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "name": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "address": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "requestIdentifier": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "checkedAt": {
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "valid",
                            "countryCode",
                            "vatNumber",
                            "name",
                            "address",
                            "requestIdentifier",
                            "checkedAt"
                          ],
                          "additionalProperties": false
                        },
                        "location": {
                          "type": "object",
                          "properties": {
                            "billingCountryCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "source": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "billingCountryCode",
                            "source"
                          ],
                          "additionalProperties": false
                        },
                        "rateTable": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "importId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "situationOn": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "trigger": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "startedAt": {
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "importId",
                            "situationOn",
                            "trigger",
                            "startedAt"
                          ],
                          "additionalProperties": false
                        },
                        "rates": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "ratePercent": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "country": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "category": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "ratePercent",
                              "country",
                              "category"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "capturedAt",
                        "issueDate",
                        "scheme",
                        "partner",
                        "vies",
                        "location",
                        "rateTable",
                        "rates"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "type",
                    "status",
                    "paymentStatus",
                    "series",
                    "number",
                    "fullNumber",
                    "issueDate",
                    "dueDate",
                    "currency",
                    "fxRate",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "paidAmount",
                    "journalTransactionId",
                    "appliedToInvoiceId",
                    "creditedInvoiceId",
                    "creditedInvoiceReference",
                    "creditedInvoiceDate",
                    "agreementId",
                    "vatScheme",
                    "intrastatTransportMode",
                    "intrastatDeliveryTerms",
                    "intrastatRegion",
                    "intrastatNatureOfTransaction",
                    "vatCountryCode",
                    "deemedSupplier",
                    "notes",
                    "documentRef",
                    "operationTypeId",
                    "documentSeriesId",
                    "seriesLabel",
                    "discountPercent",
                    "orderNumber",
                    "issuedByName",
                    "issuedByTitle",
                    "receivedByName",
                    "receivedByTitle",
                    "lockedAt",
                    "lockedBy",
                    "payToken",
                    "einvoiceSystem",
                    "einvoiceTransport",
                    "einvoiceMessageId",
                    "einvoiceNumber",
                    "einvoiceStatus",
                    "einvoiceDetail",
                    "einvoiceSentAt",
                    "einvoiceCheckedAt",
                    "createdAt",
                    "updatedAt",
                    "lines",
                    "vatEvidence"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesInvoicesGet",
        "summary": "Sales invoices get",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "invoicesGet"
      }
    },
    "/v1/sales/invoices/pdf": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "locale": {
                    "default": "en",
                    "type": "string",
                    "enum": [
                      "en",
                      "lt",
                      "de"
                    ]
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contentType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "data": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "fileName",
                    "contentType",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesInvoicesPdf",
        "summary": "Sales invoices pdf",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "invoicesPdf"
      }
    },
    "/v1/sales/invoices/send": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "to": {
                    "type": "string",
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "locale": {
                    "default": "en",
                    "type": "string",
                    "enum": [
                      "en",
                      "lt",
                      "de"
                    ]
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sent": {
                      "type": "boolean"
                    },
                    "to": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "sent",
                    "to"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesInvoicesSend",
        "summary": "Sales invoices send",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "invoicesSend"
      }
    },
    "/v1/sales/invoices/peppol-xml": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contentType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "data": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "senderId": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "receiverId": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "fileName",
                    "contentType",
                    "data",
                    "senderId",
                    "receiverId"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesInvoicesPeppolXml",
        "summary": "Sales invoices peppol xml",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "invoicesPeppolXml"
      }
    },
    "/v1/sales/invoices/peppol-send": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sent": {
                      "type": "boolean"
                    },
                    "messageId": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "receiverId": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "sent",
                    "messageId",
                    "receiverId",
                    "fileId"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesInvoicesPeppolSend",
        "summary": "Sales invoices peppol send",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "invoicesPeppolSend"
      }
    },
    "/v1/sales/invoices/einvoice-xml": {
      "post": {
        "tags": [
          "sales"
        ],
        "description": "Render an issued invoice as the national e-invoicing payload for the company country: FatturaPA (IT), KSeF FA(3) (PL) or UBL CIUS-RO (RO). Review the warnings - data the invoice does not carry is flagged, never invented.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "format": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "system": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contentType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "data": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "format",
                    "system",
                    "fileName",
                    "contentType",
                    "data",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesInvoicesEinvoiceXml",
        "summary": "Sales invoices einvoice xml",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "invoicesEinvoiceXml"
      }
    },
    "/v1/sales/invoices/einvoice-send": {
      "post": {
        "tags": [
          "sales"
        ],
        "description": "Build the national e-invoicing payload and deliver it over the transport configured for the country gateway in compliance settings. With transport=direct the request talks to the tax authority itself - SdICoop over 2-way TLS for Italy, a KSeF session for Poland, ANAF SPV OAuth for Romania - and returns the national number as soon as the channel assigns one. With transport=bridge the payload goes to the configured bridge endpoint (an accredited intermediary or connector) instead.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sent": {
                      "type": "boolean"
                    },
                    "system": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "format": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transport": {
                      "type": "string",
                      "enum": [
                        "bridge",
                        "direct"
                      ]
                    },
                    "messageId": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "nationalNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "sent",
                        "accepted",
                        "rejected"
                      ]
                    },
                    "detail": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "sent",
                    "system",
                    "format",
                    "transport",
                    "messageId",
                    "nationalNumber",
                    "status",
                    "detail",
                    "fileId",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesInvoicesEinvoiceSend",
        "summary": "Sales invoices einvoice send",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "invoicesEinvoiceSend"
      }
    },
    "/v1/sales/invoices/einvoice-status": {
      "post": {
        "tags": [
          "sales"
        ],
        "description": "Ask the national e-invoicing channel what happened to an invoice that was already sent, and store the answer. Italy, Poland and Romania return the outcome only on request - none of them calls back - so this is the way the national number and any rejection reason reach the invoice.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "system": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transport": {
                      "type": "string",
                      "enum": [
                        "bridge",
                        "direct"
                      ]
                    },
                    "messageId": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "nationalNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "sent",
                        "accepted",
                        "rejected"
                      ]
                    },
                    "detail": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "system",
                    "transport",
                    "messageId",
                    "nationalNumber",
                    "status",
                    "detail"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesInvoicesEinvoiceStatus",
        "summary": "Sales invoices einvoice status",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "invoicesEinvoiceStatus"
      }
    },
    "/v1/sales/invoices/update": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "agreementId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "issueDate": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "dueDate": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "vatScheme": {
                    "nullable": true,
                    "type": "string",
                    "enum": [
                      "domestic",
                      "intra_eu_b2b",
                      "reverse_charge",
                      "oss_union",
                      "ioss",
                      "marketplace_deemed",
                      "export",
                      "out_of_scope",
                      "sme_exempt"
                    ]
                  },
                  "intrastatTransportMode": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "intrastatDeliveryTerms": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "intrastatRegion": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "intrastatNatureOfTransaction": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "vatCountryCode": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "deemedSupplier": {
                    "type": "boolean"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "operationTypeId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documentSeriesId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "seriesLabel": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "discountPercent": {
                    "type": "string",
                    "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "orderNumber": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "issuedByName": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "issuedByTitle": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "receivedByName": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "receivedByTitle": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "lines": {
                    "minItems": 1,
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "itemId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "unit": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "quantity": {
                          "default": 1,
                          "anyOf": [
                            {
                              "type": "number",
                              "minimum": 0,
                              "exclusiveMinimum": true
                            },
                            {
                              "type": "string",
                              "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                              "example": "121.0000"
                            }
                          ]
                        },
                        "unitPriceExclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "unitPriceInclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "vatRatePercent": {
                          "type": "string",
                          "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        },
                        "vatClassifierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "costCenterId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "projectId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "recognition": {
                          "type": "object",
                          "properties": {
                            "method": {
                              "default": "point_in_time",
                              "type": "string",
                              "enum": [
                                "point_in_time",
                                "ratable",
                                "milestone",
                                "percent_complete"
                              ]
                            },
                            "startDate": {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                              "format": "date",
                              "example": "2026-07-01"
                            },
                            "endDate": {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                              "format": "date",
                              "example": "2026-07-01"
                            },
                            "milestones": {
                              "minItems": 1,
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "description": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 300,
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "expectedDate": {
                                    "type": "string",
                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                                    "format": "date",
                                    "example": "2026-07-01"
                                  },
                                  "percent": {
                                    "type": "string",
                                    "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                                    "example": "121.00"
                                  }
                                },
                                "required": [
                                  "description",
                                  "percent"
                                ]
                              }
                            }
                          }
                        },
                        "vatExemptionBasis": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "standaloneSellingPrice": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "refundEstimatePercent": {
                          "type": "string",
                          "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "invoice",
                        "credit_note",
                        "proforma",
                        "advance"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "issued"
                      ]
                    },
                    "paymentStatus": {
                      "type": "string",
                      "enum": [
                        "unpaid",
                        "partial",
                        "paid"
                      ]
                    },
                    "series": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "number": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "fullNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issueDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "dueDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fxRate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "paidAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "appliedToInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceReference": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "agreementId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatScheme": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "domestic",
                        "intra_eu_b2b",
                        "reverse_charge",
                        "oss_union",
                        "ioss",
                        "marketplace_deemed",
                        "export",
                        "out_of_scope",
                        "sme_exempt"
                      ]
                    },
                    "intrastatTransportMode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatDeliveryTerms": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatRegion": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatNatureOfTransaction": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatCountryCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "deemedSupplier": {
                      "type": "boolean"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "operationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentSeriesId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "seriesLabel": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "discountPercent": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "orderNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issuedByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issuedByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "receivedByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "receivedByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lockedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lockedBy": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payToken": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceSystem": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceTransport": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceMessageId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceStatus": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceDetail": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceSentAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "einvoiceCheckedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceInclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatClassifierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatExemptionBasis": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineGross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "recognitionMethod": {
                            "type": "string",
                            "enum": [
                              "point_in_time",
                              "ratable",
                              "milestone",
                              "percent_complete"
                            ]
                          },
                          "recognitionStartDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "recognitionEndDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "recognitionMilestones": {
                            "nullable": true,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "description": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "expectedDate": {
                                  "nullable": true,
                                  "type": "string",
                                  "format": "date",
                                  "example": "2026-07-01"
                                },
                                "percent": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "description",
                                "expectedDate",
                                "percent"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "standaloneSellingPrice": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "allocatedNet": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "refundEstimatePercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "unitPriceExclVat",
                          "unitPriceInclVat",
                          "vatRatePercent",
                          "vatClassifierCode",
                          "vatExemptionBasis",
                          "costCenterId",
                          "projectId",
                          "lineNet",
                          "lineVat",
                          "lineGross",
                          "sortOrder",
                          "recognitionMethod",
                          "recognitionStartDate",
                          "recognitionEndDate",
                          "recognitionMilestones",
                          "standaloneSellingPrice",
                          "allocatedNet",
                          "refundEstimatePercent"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "vatEvidence": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "capturedAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "issueDate": {
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "scheme": {
                          "type": "object",
                          "properties": {
                            "vatScheme": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatCountryCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "deemedSupplier": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "vatScheme",
                            "vatCountryCode",
                            "deemedSupplier"
                          ],
                          "additionalProperties": false
                        },
                        "partner": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatValid": {
                              "nullable": true,
                              "type": "boolean"
                            },
                            "vatValidatedAt": {
                              "nullable": true,
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "id",
                            "vatCode",
                            "vatValid",
                            "vatValidatedAt"
                          ],
                          "additionalProperties": false
                        },
                        "vies": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "valid": {
                              "type": "boolean"
                            },
                            "countryCode": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatNumber": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "name": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "address": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "requestIdentifier": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "checkedAt": {
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "valid",
                            "countryCode",
                            "vatNumber",
                            "name",
                            "address",
                            "requestIdentifier",
                            "checkedAt"
                          ],
                          "additionalProperties": false
                        },
                        "location": {
                          "type": "object",
                          "properties": {
                            "billingCountryCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "source": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "billingCountryCode",
                            "source"
                          ],
                          "additionalProperties": false
                        },
                        "rateTable": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "importId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "situationOn": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "trigger": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "startedAt": {
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "importId",
                            "situationOn",
                            "trigger",
                            "startedAt"
                          ],
                          "additionalProperties": false
                        },
                        "rates": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "ratePercent": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "country": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "category": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "ratePercent",
                              "country",
                              "category"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "capturedAt",
                        "issueDate",
                        "scheme",
                        "partner",
                        "vies",
                        "location",
                        "rateTable",
                        "rates"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "type",
                    "status",
                    "paymentStatus",
                    "series",
                    "number",
                    "fullNumber",
                    "issueDate",
                    "dueDate",
                    "currency",
                    "fxRate",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "paidAmount",
                    "journalTransactionId",
                    "appliedToInvoiceId",
                    "creditedInvoiceId",
                    "creditedInvoiceReference",
                    "creditedInvoiceDate",
                    "agreementId",
                    "vatScheme",
                    "intrastatTransportMode",
                    "intrastatDeliveryTerms",
                    "intrastatRegion",
                    "intrastatNatureOfTransaction",
                    "vatCountryCode",
                    "deemedSupplier",
                    "notes",
                    "documentRef",
                    "operationTypeId",
                    "documentSeriesId",
                    "seriesLabel",
                    "discountPercent",
                    "orderNumber",
                    "issuedByName",
                    "issuedByTitle",
                    "receivedByName",
                    "receivedByTitle",
                    "lockedAt",
                    "lockedBy",
                    "payToken",
                    "einvoiceSystem",
                    "einvoiceTransport",
                    "einvoiceMessageId",
                    "einvoiceNumber",
                    "einvoiceStatus",
                    "einvoiceDetail",
                    "einvoiceSentAt",
                    "einvoiceCheckedAt",
                    "createdAt",
                    "updatedAt",
                    "lines",
                    "vatEvidence"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesInvoicesUpdate",
        "summary": "Sales invoices update",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "invoicesUpdate"
      }
    },
    "/v1/sales/invoices/delete": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesInvoicesDelete",
        "summary": "Sales invoices delete",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "invoicesDelete"
      }
    },
    "/v1/sales/invoices/issue": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "series": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "issueDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "invoice",
                        "credit_note",
                        "proforma",
                        "advance"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "issued"
                      ]
                    },
                    "paymentStatus": {
                      "type": "string",
                      "enum": [
                        "unpaid",
                        "partial",
                        "paid"
                      ]
                    },
                    "series": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "number": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "fullNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issueDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "dueDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fxRate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "paidAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "appliedToInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceReference": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "agreementId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatScheme": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "domestic",
                        "intra_eu_b2b",
                        "reverse_charge",
                        "oss_union",
                        "ioss",
                        "marketplace_deemed",
                        "export",
                        "out_of_scope",
                        "sme_exempt"
                      ]
                    },
                    "intrastatTransportMode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatDeliveryTerms": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatRegion": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatNatureOfTransaction": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatCountryCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "deemedSupplier": {
                      "type": "boolean"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "operationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentSeriesId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "seriesLabel": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "discountPercent": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "orderNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issuedByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issuedByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "receivedByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "receivedByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lockedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lockedBy": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payToken": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceSystem": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceTransport": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceMessageId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceStatus": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceDetail": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceSentAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "einvoiceCheckedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceInclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatClassifierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatExemptionBasis": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineGross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "recognitionMethod": {
                            "type": "string",
                            "enum": [
                              "point_in_time",
                              "ratable",
                              "milestone",
                              "percent_complete"
                            ]
                          },
                          "recognitionStartDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "recognitionEndDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "recognitionMilestones": {
                            "nullable": true,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "description": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "expectedDate": {
                                  "nullable": true,
                                  "type": "string",
                                  "format": "date",
                                  "example": "2026-07-01"
                                },
                                "percent": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "description",
                                "expectedDate",
                                "percent"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "standaloneSellingPrice": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "allocatedNet": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "refundEstimatePercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "unitPriceExclVat",
                          "unitPriceInclVat",
                          "vatRatePercent",
                          "vatClassifierCode",
                          "vatExemptionBasis",
                          "costCenterId",
                          "projectId",
                          "lineNet",
                          "lineVat",
                          "lineGross",
                          "sortOrder",
                          "recognitionMethod",
                          "recognitionStartDate",
                          "recognitionEndDate",
                          "recognitionMilestones",
                          "standaloneSellingPrice",
                          "allocatedNet",
                          "refundEstimatePercent"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "vatEvidence": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "capturedAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "issueDate": {
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "scheme": {
                          "type": "object",
                          "properties": {
                            "vatScheme": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatCountryCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "deemedSupplier": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "vatScheme",
                            "vatCountryCode",
                            "deemedSupplier"
                          ],
                          "additionalProperties": false
                        },
                        "partner": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatValid": {
                              "nullable": true,
                              "type": "boolean"
                            },
                            "vatValidatedAt": {
                              "nullable": true,
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "id",
                            "vatCode",
                            "vatValid",
                            "vatValidatedAt"
                          ],
                          "additionalProperties": false
                        },
                        "vies": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "valid": {
                              "type": "boolean"
                            },
                            "countryCode": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatNumber": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "name": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "address": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "requestIdentifier": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "checkedAt": {
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "valid",
                            "countryCode",
                            "vatNumber",
                            "name",
                            "address",
                            "requestIdentifier",
                            "checkedAt"
                          ],
                          "additionalProperties": false
                        },
                        "location": {
                          "type": "object",
                          "properties": {
                            "billingCountryCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "source": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "billingCountryCode",
                            "source"
                          ],
                          "additionalProperties": false
                        },
                        "rateTable": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "importId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "situationOn": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "trigger": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "startedAt": {
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "importId",
                            "situationOn",
                            "trigger",
                            "startedAt"
                          ],
                          "additionalProperties": false
                        },
                        "rates": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "ratePercent": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "country": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "category": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "ratePercent",
                              "country",
                              "category"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "capturedAt",
                        "issueDate",
                        "scheme",
                        "partner",
                        "vies",
                        "location",
                        "rateTable",
                        "rates"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "type",
                    "status",
                    "paymentStatus",
                    "series",
                    "number",
                    "fullNumber",
                    "issueDate",
                    "dueDate",
                    "currency",
                    "fxRate",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "paidAmount",
                    "journalTransactionId",
                    "appliedToInvoiceId",
                    "creditedInvoiceId",
                    "creditedInvoiceReference",
                    "creditedInvoiceDate",
                    "agreementId",
                    "vatScheme",
                    "intrastatTransportMode",
                    "intrastatDeliveryTerms",
                    "intrastatRegion",
                    "intrastatNatureOfTransaction",
                    "vatCountryCode",
                    "deemedSupplier",
                    "notes",
                    "documentRef",
                    "operationTypeId",
                    "documentSeriesId",
                    "seriesLabel",
                    "discountPercent",
                    "orderNumber",
                    "issuedByName",
                    "issuedByTitle",
                    "receivedByName",
                    "receivedByTitle",
                    "lockedAt",
                    "lockedBy",
                    "payToken",
                    "einvoiceSystem",
                    "einvoiceTransport",
                    "einvoiceMessageId",
                    "einvoiceNumber",
                    "einvoiceStatus",
                    "einvoiceDetail",
                    "einvoiceSentAt",
                    "einvoiceCheckedAt",
                    "createdAt",
                    "updatedAt",
                    "lines",
                    "vatEvidence"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesInvoicesIssue",
        "summary": "Sales invoices issue",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "invoicesIssue"
      }
    },
    "/v1/sales/invoices/lock": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "invoice",
                        "credit_note",
                        "proforma",
                        "advance"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "issued"
                      ]
                    },
                    "paymentStatus": {
                      "type": "string",
                      "enum": [
                        "unpaid",
                        "partial",
                        "paid"
                      ]
                    },
                    "series": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "number": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "fullNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issueDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "dueDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fxRate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "paidAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "appliedToInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceReference": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "agreementId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatScheme": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "domestic",
                        "intra_eu_b2b",
                        "reverse_charge",
                        "oss_union",
                        "ioss",
                        "marketplace_deemed",
                        "export",
                        "out_of_scope",
                        "sme_exempt"
                      ]
                    },
                    "intrastatTransportMode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatDeliveryTerms": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatRegion": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatNatureOfTransaction": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatCountryCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "deemedSupplier": {
                      "type": "boolean"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "operationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentSeriesId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "seriesLabel": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "discountPercent": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "orderNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issuedByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issuedByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "receivedByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "receivedByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lockedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lockedBy": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payToken": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceSystem": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceTransport": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceMessageId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceStatus": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceDetail": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceSentAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "einvoiceCheckedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceInclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatClassifierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatExemptionBasis": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineGross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "recognitionMethod": {
                            "type": "string",
                            "enum": [
                              "point_in_time",
                              "ratable",
                              "milestone",
                              "percent_complete"
                            ]
                          },
                          "recognitionStartDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "recognitionEndDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "recognitionMilestones": {
                            "nullable": true,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "description": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "expectedDate": {
                                  "nullable": true,
                                  "type": "string",
                                  "format": "date",
                                  "example": "2026-07-01"
                                },
                                "percent": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "description",
                                "expectedDate",
                                "percent"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "standaloneSellingPrice": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "allocatedNet": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "refundEstimatePercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "unitPriceExclVat",
                          "unitPriceInclVat",
                          "vatRatePercent",
                          "vatClassifierCode",
                          "vatExemptionBasis",
                          "costCenterId",
                          "projectId",
                          "lineNet",
                          "lineVat",
                          "lineGross",
                          "sortOrder",
                          "recognitionMethod",
                          "recognitionStartDate",
                          "recognitionEndDate",
                          "recognitionMilestones",
                          "standaloneSellingPrice",
                          "allocatedNet",
                          "refundEstimatePercent"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "vatEvidence": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "capturedAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "issueDate": {
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "scheme": {
                          "type": "object",
                          "properties": {
                            "vatScheme": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatCountryCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "deemedSupplier": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "vatScheme",
                            "vatCountryCode",
                            "deemedSupplier"
                          ],
                          "additionalProperties": false
                        },
                        "partner": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatValid": {
                              "nullable": true,
                              "type": "boolean"
                            },
                            "vatValidatedAt": {
                              "nullable": true,
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "id",
                            "vatCode",
                            "vatValid",
                            "vatValidatedAt"
                          ],
                          "additionalProperties": false
                        },
                        "vies": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "valid": {
                              "type": "boolean"
                            },
                            "countryCode": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatNumber": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "name": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "address": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "requestIdentifier": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "checkedAt": {
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "valid",
                            "countryCode",
                            "vatNumber",
                            "name",
                            "address",
                            "requestIdentifier",
                            "checkedAt"
                          ],
                          "additionalProperties": false
                        },
                        "location": {
                          "type": "object",
                          "properties": {
                            "billingCountryCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "source": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "billingCountryCode",
                            "source"
                          ],
                          "additionalProperties": false
                        },
                        "rateTable": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "importId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "situationOn": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "trigger": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "startedAt": {
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "importId",
                            "situationOn",
                            "trigger",
                            "startedAt"
                          ],
                          "additionalProperties": false
                        },
                        "rates": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "ratePercent": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "country": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "category": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "ratePercent",
                              "country",
                              "category"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "capturedAt",
                        "issueDate",
                        "scheme",
                        "partner",
                        "vies",
                        "location",
                        "rateTable",
                        "rates"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "type",
                    "status",
                    "paymentStatus",
                    "series",
                    "number",
                    "fullNumber",
                    "issueDate",
                    "dueDate",
                    "currency",
                    "fxRate",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "paidAmount",
                    "journalTransactionId",
                    "appliedToInvoiceId",
                    "creditedInvoiceId",
                    "creditedInvoiceReference",
                    "creditedInvoiceDate",
                    "agreementId",
                    "vatScheme",
                    "intrastatTransportMode",
                    "intrastatDeliveryTerms",
                    "intrastatRegion",
                    "intrastatNatureOfTransaction",
                    "vatCountryCode",
                    "deemedSupplier",
                    "notes",
                    "documentRef",
                    "operationTypeId",
                    "documentSeriesId",
                    "seriesLabel",
                    "discountPercent",
                    "orderNumber",
                    "issuedByName",
                    "issuedByTitle",
                    "receivedByName",
                    "receivedByTitle",
                    "lockedAt",
                    "lockedBy",
                    "payToken",
                    "einvoiceSystem",
                    "einvoiceTransport",
                    "einvoiceMessageId",
                    "einvoiceNumber",
                    "einvoiceStatus",
                    "einvoiceDetail",
                    "einvoiceSentAt",
                    "einvoiceCheckedAt",
                    "createdAt",
                    "updatedAt",
                    "lines",
                    "vatEvidence"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesInvoicesLock",
        "summary": "Sales invoices lock",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "invoicesLock"
      }
    },
    "/v1/sales/invoices/unlock": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "invoice",
                        "credit_note",
                        "proforma",
                        "advance"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "issued"
                      ]
                    },
                    "paymentStatus": {
                      "type": "string",
                      "enum": [
                        "unpaid",
                        "partial",
                        "paid"
                      ]
                    },
                    "series": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "number": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "fullNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issueDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "dueDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fxRate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "paidAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "appliedToInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceReference": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "agreementId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatScheme": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "domestic",
                        "intra_eu_b2b",
                        "reverse_charge",
                        "oss_union",
                        "ioss",
                        "marketplace_deemed",
                        "export",
                        "out_of_scope",
                        "sme_exempt"
                      ]
                    },
                    "intrastatTransportMode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatDeliveryTerms": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatRegion": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatNatureOfTransaction": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatCountryCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "deemedSupplier": {
                      "type": "boolean"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "operationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentSeriesId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "seriesLabel": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "discountPercent": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "orderNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issuedByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issuedByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "receivedByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "receivedByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lockedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lockedBy": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payToken": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceSystem": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceTransport": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceMessageId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceStatus": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceDetail": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceSentAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "einvoiceCheckedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceInclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatClassifierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatExemptionBasis": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineGross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "recognitionMethod": {
                            "type": "string",
                            "enum": [
                              "point_in_time",
                              "ratable",
                              "milestone",
                              "percent_complete"
                            ]
                          },
                          "recognitionStartDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "recognitionEndDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "recognitionMilestones": {
                            "nullable": true,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "description": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "expectedDate": {
                                  "nullable": true,
                                  "type": "string",
                                  "format": "date",
                                  "example": "2026-07-01"
                                },
                                "percent": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "description",
                                "expectedDate",
                                "percent"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "standaloneSellingPrice": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "allocatedNet": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "refundEstimatePercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "unitPriceExclVat",
                          "unitPriceInclVat",
                          "vatRatePercent",
                          "vatClassifierCode",
                          "vatExemptionBasis",
                          "costCenterId",
                          "projectId",
                          "lineNet",
                          "lineVat",
                          "lineGross",
                          "sortOrder",
                          "recognitionMethod",
                          "recognitionStartDate",
                          "recognitionEndDate",
                          "recognitionMilestones",
                          "standaloneSellingPrice",
                          "allocatedNet",
                          "refundEstimatePercent"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "vatEvidence": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "capturedAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "issueDate": {
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "scheme": {
                          "type": "object",
                          "properties": {
                            "vatScheme": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatCountryCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "deemedSupplier": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "vatScheme",
                            "vatCountryCode",
                            "deemedSupplier"
                          ],
                          "additionalProperties": false
                        },
                        "partner": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatValid": {
                              "nullable": true,
                              "type": "boolean"
                            },
                            "vatValidatedAt": {
                              "nullable": true,
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "id",
                            "vatCode",
                            "vatValid",
                            "vatValidatedAt"
                          ],
                          "additionalProperties": false
                        },
                        "vies": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "valid": {
                              "type": "boolean"
                            },
                            "countryCode": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatNumber": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "name": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "address": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "requestIdentifier": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "checkedAt": {
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "valid",
                            "countryCode",
                            "vatNumber",
                            "name",
                            "address",
                            "requestIdentifier",
                            "checkedAt"
                          ],
                          "additionalProperties": false
                        },
                        "location": {
                          "type": "object",
                          "properties": {
                            "billingCountryCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "source": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "billingCountryCode",
                            "source"
                          ],
                          "additionalProperties": false
                        },
                        "rateTable": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "importId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "situationOn": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "trigger": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "startedAt": {
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "importId",
                            "situationOn",
                            "trigger",
                            "startedAt"
                          ],
                          "additionalProperties": false
                        },
                        "rates": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "ratePercent": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "country": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "category": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "ratePercent",
                              "country",
                              "category"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "capturedAt",
                        "issueDate",
                        "scheme",
                        "partner",
                        "vies",
                        "location",
                        "rateTable",
                        "rates"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "type",
                    "status",
                    "paymentStatus",
                    "series",
                    "number",
                    "fullNumber",
                    "issueDate",
                    "dueDate",
                    "currency",
                    "fxRate",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "paidAmount",
                    "journalTransactionId",
                    "appliedToInvoiceId",
                    "creditedInvoiceId",
                    "creditedInvoiceReference",
                    "creditedInvoiceDate",
                    "agreementId",
                    "vatScheme",
                    "intrastatTransportMode",
                    "intrastatDeliveryTerms",
                    "intrastatRegion",
                    "intrastatNatureOfTransaction",
                    "vatCountryCode",
                    "deemedSupplier",
                    "notes",
                    "documentRef",
                    "operationTypeId",
                    "documentSeriesId",
                    "seriesLabel",
                    "discountPercent",
                    "orderNumber",
                    "issuedByName",
                    "issuedByTitle",
                    "receivedByName",
                    "receivedByTitle",
                    "lockedAt",
                    "lockedBy",
                    "payToken",
                    "einvoiceSystem",
                    "einvoiceTransport",
                    "einvoiceMessageId",
                    "einvoiceNumber",
                    "einvoiceStatus",
                    "einvoiceDetail",
                    "einvoiceSentAt",
                    "einvoiceCheckedAt",
                    "createdAt",
                    "updatedAt",
                    "lines",
                    "vatEvidence"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesInvoicesUnlock",
        "summary": "Sales invoices unlock",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "invoicesUnlock"
      }
    },
    "/v1/sales/invoices/payment-link": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "source": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "template"
                      ]
                    }
                  },
                  "required": [
                    "url",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesInvoicesPaymentLink",
        "summary": "Sales invoices payment link",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "invoicesPaymentLink"
      }
    },
    "/v1/sales/invoices/payment-settings/get": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "default": {},
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paymentLinkTemplate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "paymentLinkTemplate"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesInvoicesPaymentSettingsGet",
        "summary": "Sales invoices payment settings get",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "invoicesPaymentSettingsGet"
      }
    },
    "/v1/sales/invoices/payment-settings/update": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "paymentLinkTemplate": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "paymentLinkTemplate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "paymentLinkTemplate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "paymentLinkTemplate"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesInvoicesPaymentSettingsUpdate",
        "summary": "Sales invoices payment settings update",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "invoicesPaymentSettingsUpdate"
      }
    },
    "/v1/sales/recognition-schedules/list": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoiceId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoiceLineId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "method": {
                            "type": "string",
                            "enum": [
                              "point_in_time",
                              "ratable",
                              "milestone",
                              "percent_complete"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "recognized",
                              "cancelled"
                            ]
                          },
                          "scheduleDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "description": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "journalTransactionId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "recognizedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "invoiceId",
                          "invoiceLineId",
                          "method",
                          "status",
                          "scheduleDate",
                          "description",
                          "amount",
                          "journalTransactionId",
                          "recognizedAt",
                          "sortOrder",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesRecognitionSchedulesList",
        "summary": "Sales recognition schedules list",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "recognitionSchedulesList"
      }
    },
    "/v1/sales/invoices/apply-advance": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "advanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "invoiceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "advanceId",
                  "invoiceId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "invoice",
                        "credit_note",
                        "proforma",
                        "advance"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "issued"
                      ]
                    },
                    "paymentStatus": {
                      "type": "string",
                      "enum": [
                        "unpaid",
                        "partial",
                        "paid"
                      ]
                    },
                    "series": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "number": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "fullNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issueDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "dueDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fxRate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "paidAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "appliedToInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceReference": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "agreementId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatScheme": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "domestic",
                        "intra_eu_b2b",
                        "reverse_charge",
                        "oss_union",
                        "ioss",
                        "marketplace_deemed",
                        "export",
                        "out_of_scope",
                        "sme_exempt"
                      ]
                    },
                    "intrastatTransportMode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatDeliveryTerms": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatRegion": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatNatureOfTransaction": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatCountryCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "deemedSupplier": {
                      "type": "boolean"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "operationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentSeriesId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "seriesLabel": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "discountPercent": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "orderNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issuedByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issuedByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "receivedByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "receivedByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lockedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lockedBy": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payToken": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceSystem": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceTransport": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceMessageId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceStatus": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceDetail": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceSentAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "einvoiceCheckedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceInclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatClassifierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatExemptionBasis": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineGross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "recognitionMethod": {
                            "type": "string",
                            "enum": [
                              "point_in_time",
                              "ratable",
                              "milestone",
                              "percent_complete"
                            ]
                          },
                          "recognitionStartDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "recognitionEndDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "recognitionMilestones": {
                            "nullable": true,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "description": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "expectedDate": {
                                  "nullable": true,
                                  "type": "string",
                                  "format": "date",
                                  "example": "2026-07-01"
                                },
                                "percent": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "description",
                                "expectedDate",
                                "percent"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "standaloneSellingPrice": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "allocatedNet": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "refundEstimatePercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "unitPriceExclVat",
                          "unitPriceInclVat",
                          "vatRatePercent",
                          "vatClassifierCode",
                          "vatExemptionBasis",
                          "costCenterId",
                          "projectId",
                          "lineNet",
                          "lineVat",
                          "lineGross",
                          "sortOrder",
                          "recognitionMethod",
                          "recognitionStartDate",
                          "recognitionEndDate",
                          "recognitionMilestones",
                          "standaloneSellingPrice",
                          "allocatedNet",
                          "refundEstimatePercent"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "vatEvidence": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "capturedAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "issueDate": {
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "scheme": {
                          "type": "object",
                          "properties": {
                            "vatScheme": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatCountryCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "deemedSupplier": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "vatScheme",
                            "vatCountryCode",
                            "deemedSupplier"
                          ],
                          "additionalProperties": false
                        },
                        "partner": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatValid": {
                              "nullable": true,
                              "type": "boolean"
                            },
                            "vatValidatedAt": {
                              "nullable": true,
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "id",
                            "vatCode",
                            "vatValid",
                            "vatValidatedAt"
                          ],
                          "additionalProperties": false
                        },
                        "vies": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "valid": {
                              "type": "boolean"
                            },
                            "countryCode": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatNumber": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "name": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "address": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "requestIdentifier": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "checkedAt": {
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "valid",
                            "countryCode",
                            "vatNumber",
                            "name",
                            "address",
                            "requestIdentifier",
                            "checkedAt"
                          ],
                          "additionalProperties": false
                        },
                        "location": {
                          "type": "object",
                          "properties": {
                            "billingCountryCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "source": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "billingCountryCode",
                            "source"
                          ],
                          "additionalProperties": false
                        },
                        "rateTable": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "importId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "situationOn": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "trigger": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "startedAt": {
                              "type": "string",
                              "format": "date-time",
                              "example": "2026-07-01T09:30:00.000Z"
                            }
                          },
                          "required": [
                            "importId",
                            "situationOn",
                            "trigger",
                            "startedAt"
                          ],
                          "additionalProperties": false
                        },
                        "rates": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "ratePercent": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "country": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "category": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "ratePercent",
                              "country",
                              "category"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "capturedAt",
                        "issueDate",
                        "scheme",
                        "partner",
                        "vies",
                        "location",
                        "rateTable",
                        "rates"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "type",
                    "status",
                    "paymentStatus",
                    "series",
                    "number",
                    "fullNumber",
                    "issueDate",
                    "dueDate",
                    "currency",
                    "fxRate",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "paidAmount",
                    "journalTransactionId",
                    "appliedToInvoiceId",
                    "creditedInvoiceId",
                    "creditedInvoiceReference",
                    "creditedInvoiceDate",
                    "agreementId",
                    "vatScheme",
                    "intrastatTransportMode",
                    "intrastatDeliveryTerms",
                    "intrastatRegion",
                    "intrastatNatureOfTransaction",
                    "vatCountryCode",
                    "deemedSupplier",
                    "notes",
                    "documentRef",
                    "operationTypeId",
                    "documentSeriesId",
                    "seriesLabel",
                    "discountPercent",
                    "orderNumber",
                    "issuedByName",
                    "issuedByTitle",
                    "receivedByName",
                    "receivedByTitle",
                    "lockedAt",
                    "lockedBy",
                    "payToken",
                    "einvoiceSystem",
                    "einvoiceTransport",
                    "einvoiceMessageId",
                    "einvoiceNumber",
                    "einvoiceStatus",
                    "einvoiceDetail",
                    "einvoiceSentAt",
                    "einvoiceCheckedAt",
                    "createdAt",
                    "updatedAt",
                    "lines",
                    "vatEvidence"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesInvoicesApplyAdvance",
        "summary": "Sales invoices apply advance",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "invoicesApplyAdvance"
      }
    },
    "/v1/sales/invoices/list": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "invoice",
                              "credit_note",
                              "proforma",
                              "advance"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "issued"
                            ]
                          },
                          "paymentStatus": {
                            "type": "string",
                            "enum": [
                              "unpaid",
                              "partial",
                              "paid"
                            ]
                          },
                          "series": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "number": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "fullNumber": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "issueDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "dueDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fxRate": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "netTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "grossTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "paidAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "journalTransactionId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "appliedToInvoiceId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "creditedInvoiceId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "creditedInvoiceReference": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "creditedInvoiceDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "agreementId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatScheme": {
                            "nullable": true,
                            "type": "string",
                            "enum": [
                              "domestic",
                              "intra_eu_b2b",
                              "reverse_charge",
                              "oss_union",
                              "ioss",
                              "marketplace_deemed",
                              "export",
                              "out_of_scope",
                              "sme_exempt"
                            ]
                          },
                          "intrastatTransportMode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "intrastatDeliveryTerms": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "intrastatRegion": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "intrastatNatureOfTransaction": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatCountryCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "deemedSupplier": {
                            "type": "boolean"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentRef": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "operationTypeId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentSeriesId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "seriesLabel": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "discountPercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "orderNumber": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "issuedByName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "issuedByTitle": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "receivedByName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "receivedByTitle": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lockedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "lockedBy": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "payToken": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "einvoiceSystem": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "einvoiceTransport": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "einvoiceMessageId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "einvoiceNumber": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "einvoiceStatus": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "einvoiceDetail": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "einvoiceSentAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "einvoiceCheckedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "partnerName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "partnerId",
                          "type",
                          "status",
                          "paymentStatus",
                          "series",
                          "number",
                          "fullNumber",
                          "issueDate",
                          "dueDate",
                          "currency",
                          "fxRate",
                          "netTotal",
                          "vatTotal",
                          "grossTotal",
                          "paidAmount",
                          "journalTransactionId",
                          "appliedToInvoiceId",
                          "creditedInvoiceId",
                          "creditedInvoiceReference",
                          "creditedInvoiceDate",
                          "agreementId",
                          "vatScheme",
                          "intrastatTransportMode",
                          "intrastatDeliveryTerms",
                          "intrastatRegion",
                          "intrastatNatureOfTransaction",
                          "vatCountryCode",
                          "deemedSupplier",
                          "notes",
                          "documentRef",
                          "operationTypeId",
                          "documentSeriesId",
                          "seriesLabel",
                          "discountPercent",
                          "orderNumber",
                          "issuedByName",
                          "issuedByTitle",
                          "receivedByName",
                          "receivedByTitle",
                          "lockedAt",
                          "lockedBy",
                          "payToken",
                          "einvoiceSystem",
                          "einvoiceTransport",
                          "einvoiceMessageId",
                          "einvoiceNumber",
                          "einvoiceStatus",
                          "einvoiceDetail",
                          "einvoiceSentAt",
                          "einvoiceCheckedAt",
                          "createdAt",
                          "updatedAt",
                          "partnerName"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesInvoicesList",
        "summary": "Sales invoices list",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "invoicesList"
      }
    },
    "/v1/sales/acts/create": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "type": {
                    "default": "goods",
                    "type": "string",
                    "enum": [
                      "goods",
                      "services"
                    ]
                  },
                  "documentDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "saleInvoiceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "transferredByName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "transferredByTitle": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "acceptedByName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "acceptedByTitle": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "series": {
                    "default": "PPA",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "lines": {
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "itemId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "unit": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "quantity": {
                          "type": "string",
                          "pattern": "^\\d{1,9}(\\.\\d{1,3})?$",
                          "example": "121.000"
                        },
                        "unitPriceExclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        }
                      },
                      "required": [
                        "quantity"
                      ]
                    }
                  }
                },
                "required": [
                  "partnerId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "goods",
                        "services"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "issued",
                        "cancelled"
                      ]
                    },
                    "series": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fullNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "saleInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transferredByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transferredByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "acceptedByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "acceptedByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "unitPriceExclVat",
                          "lineNet",
                          "sortOrder"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "type",
                    "status",
                    "series",
                    "fullNumber",
                    "documentDate",
                    "saleInvoiceId",
                    "transferredByName",
                    "transferredByTitle",
                    "acceptedByName",
                    "acceptedByTitle",
                    "notes",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesActsCreate",
        "summary": "Sales acts create",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "actsCreate"
      }
    },
    "/v1/sales/acts/update": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "goods",
                      "services"
                    ]
                  },
                  "documentDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "saleInvoiceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "transferredByName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "transferredByTitle": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "acceptedByName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "acceptedByTitle": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "series": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "lines": {
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "itemId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "unit": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "quantity": {
                          "type": "string",
                          "pattern": "^\\d{1,9}(\\.\\d{1,3})?$",
                          "example": "121.000"
                        },
                        "unitPriceExclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        }
                      },
                      "required": [
                        "quantity"
                      ]
                    }
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "goods",
                        "services"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "issued",
                        "cancelled"
                      ]
                    },
                    "series": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fullNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "saleInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transferredByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transferredByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "acceptedByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "acceptedByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "unitPriceExclVat",
                          "lineNet",
                          "sortOrder"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "type",
                    "status",
                    "series",
                    "fullNumber",
                    "documentDate",
                    "saleInvoiceId",
                    "transferredByName",
                    "transferredByTitle",
                    "acceptedByName",
                    "acceptedByTitle",
                    "notes",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesActsUpdate",
        "summary": "Sales acts update",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "actsUpdate"
      }
    },
    "/v1/sales/acts/issue": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "goods",
                        "services"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "issued",
                        "cancelled"
                      ]
                    },
                    "series": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fullNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "saleInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transferredByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transferredByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "acceptedByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "acceptedByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "unitPriceExclVat",
                          "lineNet",
                          "sortOrder"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "type",
                    "status",
                    "series",
                    "fullNumber",
                    "documentDate",
                    "saleInvoiceId",
                    "transferredByName",
                    "transferredByTitle",
                    "acceptedByName",
                    "acceptedByTitle",
                    "notes",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesActsIssue",
        "summary": "Sales acts issue",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "actsIssue"
      }
    },
    "/v1/sales/acts/cancel": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "goods",
                        "services"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "issued",
                        "cancelled"
                      ]
                    },
                    "series": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fullNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "saleInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transferredByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transferredByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "acceptedByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "acceptedByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "type",
                    "status",
                    "series",
                    "fullNumber",
                    "documentDate",
                    "saleInvoiceId",
                    "transferredByName",
                    "transferredByTitle",
                    "acceptedByName",
                    "acceptedByTitle",
                    "notes",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesActsCancel",
        "summary": "Sales acts cancel",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "actsCancel"
      }
    },
    "/v1/sales/acts/get": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "goods",
                        "services"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "issued",
                        "cancelled"
                      ]
                    },
                    "series": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fullNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "saleInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transferredByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transferredByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "acceptedByName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "acceptedByTitle": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "unitPriceExclVat",
                          "lineNet",
                          "sortOrder"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "type",
                    "status",
                    "series",
                    "fullNumber",
                    "documentDate",
                    "saleInvoiceId",
                    "transferredByName",
                    "transferredByTitle",
                    "acceptedByName",
                    "acceptedByTitle",
                    "notes",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesActsGet",
        "summary": "Sales acts get",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "actsGet"
      }
    },
    "/v1/sales/acts/list": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "goods",
                              "services"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "issued",
                              "cancelled"
                            ]
                          },
                          "series": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fullNumber": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "saleInvoiceId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "transferredByName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "transferredByTitle": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "acceptedByName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "acceptedByTitle": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "partnerId",
                          "type",
                          "status",
                          "series",
                          "fullNumber",
                          "documentDate",
                          "saleInvoiceId",
                          "transferredByName",
                          "transferredByTitle",
                          "acceptedByName",
                          "acceptedByTitle",
                          "notes",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesActsList",
        "summary": "Sales acts list",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "actsList"
      }
    },
    "/v1/sales/acts/pdf": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "locale": {
                    "default": "en",
                    "type": "string",
                    "enum": [
                      "en",
                      "lt",
                      "de"
                    ]
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contentType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "data": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "fileName",
                    "contentType",
                    "data"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesActsPdf",
        "summary": "Sales acts pdf",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "actsPdf"
      }
    },
    "/v1/operation-types/create": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "invoiceType": {
                    "nullable": true,
                    "type": "string",
                    "enum": [
                      "invoice",
                      "credit_note",
                      "proforma",
                      "advance"
                    ]
                  },
                  "payerPartnerId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "debitAccountCode": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "creditAccountCode": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "vatAccountCode": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "expenseAccountCode": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "advanceAccountCode": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "incomeAccountCode": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isPurchase": {
                    "type": "boolean"
                  },
                  "isSale": {
                    "type": "boolean"
                  },
                  "isWriteOff": {
                    "type": "boolean"
                  },
                  "isInternalMovement": {
                    "type": "boolean"
                  },
                  "isPurchaseReturn": {
                    "type": "boolean"
                  },
                  "isSalesReturn": {
                    "type": "boolean"
                  },
                  "isConsignment": {
                    "type": "boolean"
                  },
                  "isProduction": {
                    "type": "boolean"
                  },
                  "isAssetIn": {
                    "type": "boolean"
                  },
                  "isAssetOut": {
                    "type": "boolean"
                  },
                  "isCashRegisterSale": {
                    "type": "boolean"
                  },
                  "includeInVatRegister": {
                    "default": true,
                    "type": "boolean"
                  },
                  "includeInSaft": {
                    "default": true,
                    "type": "boolean"
                  },
                  "isActive": {
                    "default": true,
                    "type": "boolean"
                  },
                  "sortOrder": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000,
                    "format": "int64"
                  }
                },
                "required": [
                  "code",
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "invoiceType": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "invoice",
                        "credit_note",
                        "proforma",
                        "advance"
                      ]
                    },
                    "payerPartnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "debitAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "expenseAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "advanceAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "incomeAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isPurchase": {
                      "type": "boolean"
                    },
                    "isSale": {
                      "type": "boolean"
                    },
                    "isWriteOff": {
                      "type": "boolean"
                    },
                    "isInternalMovement": {
                      "type": "boolean"
                    },
                    "isPurchaseReturn": {
                      "type": "boolean"
                    },
                    "isSalesReturn": {
                      "type": "boolean"
                    },
                    "isConsignment": {
                      "type": "boolean"
                    },
                    "isProduction": {
                      "type": "boolean"
                    },
                    "isAssetIn": {
                      "type": "boolean"
                    },
                    "isAssetOut": {
                      "type": "boolean"
                    },
                    "isCashRegisterSale": {
                      "type": "boolean"
                    },
                    "includeInVatRegister": {
                      "type": "boolean"
                    },
                    "includeInSaft": {
                      "type": "boolean"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "sortOrder": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "invoiceType",
                    "payerPartnerId",
                    "debitAccountCode",
                    "creditAccountCode",
                    "vatAccountCode",
                    "expenseAccountCode",
                    "advanceAccountCode",
                    "incomeAccountCode",
                    "isPurchase",
                    "isSale",
                    "isWriteOff",
                    "isInternalMovement",
                    "isPurchaseReturn",
                    "isSalesReturn",
                    "isConsignment",
                    "isProduction",
                    "isAssetIn",
                    "isAssetOut",
                    "isCashRegisterSale",
                    "includeInVatRegister",
                    "includeInSaft",
                    "isActive",
                    "sortOrder",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "operationTypesCreate",
        "summary": "Operation types create",
        "x-fern-sdk-group-name": "operationTypes",
        "x-fern-sdk-method-name": "create"
      }
    },
    "/v1/operation-types/update": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "invoiceType": {
                    "nullable": true,
                    "type": "string",
                    "enum": [
                      "invoice",
                      "credit_note",
                      "proforma",
                      "advance"
                    ]
                  },
                  "payerPartnerId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "debitAccountCode": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "creditAccountCode": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "vatAccountCode": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "expenseAccountCode": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "advanceAccountCode": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "incomeAccountCode": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isPurchase": {
                    "type": "boolean"
                  },
                  "isSale": {
                    "type": "boolean"
                  },
                  "isWriteOff": {
                    "type": "boolean"
                  },
                  "isInternalMovement": {
                    "type": "boolean"
                  },
                  "isPurchaseReturn": {
                    "type": "boolean"
                  },
                  "isSalesReturn": {
                    "type": "boolean"
                  },
                  "isConsignment": {
                    "type": "boolean"
                  },
                  "isProduction": {
                    "type": "boolean"
                  },
                  "isAssetIn": {
                    "type": "boolean"
                  },
                  "isAssetOut": {
                    "type": "boolean"
                  },
                  "isCashRegisterSale": {
                    "type": "boolean"
                  },
                  "includeInVatRegister": {
                    "type": "boolean"
                  },
                  "includeInSaft": {
                    "type": "boolean"
                  },
                  "isActive": {
                    "type": "boolean"
                  },
                  "sortOrder": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000,
                    "format": "int64"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "invoiceType": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "invoice",
                        "credit_note",
                        "proforma",
                        "advance"
                      ]
                    },
                    "payerPartnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "debitAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "expenseAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "advanceAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "incomeAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isPurchase": {
                      "type": "boolean"
                    },
                    "isSale": {
                      "type": "boolean"
                    },
                    "isWriteOff": {
                      "type": "boolean"
                    },
                    "isInternalMovement": {
                      "type": "boolean"
                    },
                    "isPurchaseReturn": {
                      "type": "boolean"
                    },
                    "isSalesReturn": {
                      "type": "boolean"
                    },
                    "isConsignment": {
                      "type": "boolean"
                    },
                    "isProduction": {
                      "type": "boolean"
                    },
                    "isAssetIn": {
                      "type": "boolean"
                    },
                    "isAssetOut": {
                      "type": "boolean"
                    },
                    "isCashRegisterSale": {
                      "type": "boolean"
                    },
                    "includeInVatRegister": {
                      "type": "boolean"
                    },
                    "includeInSaft": {
                      "type": "boolean"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "sortOrder": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "invoiceType",
                    "payerPartnerId",
                    "debitAccountCode",
                    "creditAccountCode",
                    "vatAccountCode",
                    "expenseAccountCode",
                    "advanceAccountCode",
                    "incomeAccountCode",
                    "isPurchase",
                    "isSale",
                    "isWriteOff",
                    "isInternalMovement",
                    "isPurchaseReturn",
                    "isSalesReturn",
                    "isConsignment",
                    "isProduction",
                    "isAssetIn",
                    "isAssetOut",
                    "isCashRegisterSale",
                    "includeInVatRegister",
                    "includeInSaft",
                    "isActive",
                    "sortOrder",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "operationTypesUpdate",
        "summary": "Operation types update",
        "x-fern-sdk-group-name": "operationTypes",
        "x-fern-sdk-method-name": "update"
      }
    },
    "/v1/operation-types/get": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "invoiceType": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "invoice",
                        "credit_note",
                        "proforma",
                        "advance"
                      ]
                    },
                    "payerPartnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "debitAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "expenseAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "advanceAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "incomeAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isPurchase": {
                      "type": "boolean"
                    },
                    "isSale": {
                      "type": "boolean"
                    },
                    "isWriteOff": {
                      "type": "boolean"
                    },
                    "isInternalMovement": {
                      "type": "boolean"
                    },
                    "isPurchaseReturn": {
                      "type": "boolean"
                    },
                    "isSalesReturn": {
                      "type": "boolean"
                    },
                    "isConsignment": {
                      "type": "boolean"
                    },
                    "isProduction": {
                      "type": "boolean"
                    },
                    "isAssetIn": {
                      "type": "boolean"
                    },
                    "isAssetOut": {
                      "type": "boolean"
                    },
                    "isCashRegisterSale": {
                      "type": "boolean"
                    },
                    "includeInVatRegister": {
                      "type": "boolean"
                    },
                    "includeInSaft": {
                      "type": "boolean"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "sortOrder": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "invoiceType",
                    "payerPartnerId",
                    "debitAccountCode",
                    "creditAccountCode",
                    "vatAccountCode",
                    "expenseAccountCode",
                    "advanceAccountCode",
                    "incomeAccountCode",
                    "isPurchase",
                    "isSale",
                    "isWriteOff",
                    "isInternalMovement",
                    "isPurchaseReturn",
                    "isSalesReturn",
                    "isConsignment",
                    "isProduction",
                    "isAssetIn",
                    "isAssetOut",
                    "isCashRegisterSale",
                    "includeInVatRegister",
                    "includeInSaft",
                    "isActive",
                    "sortOrder",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "operationTypesGet",
        "summary": "Operation types get",
        "x-fern-sdk-group-name": "operationTypes",
        "x-fern-sdk-method-name": "get"
      }
    },
    "/v1/operation-types/delete": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "operationTypesDelete",
        "summary": "Operation types delete",
        "x-fern-sdk-group-name": "operationTypes",
        "x-fern-sdk-method-name": "delete"
      }
    },
    "/v1/operation-types/list": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoiceType": {
                            "nullable": true,
                            "type": "string",
                            "enum": [
                              "invoice",
                              "credit_note",
                              "proforma",
                              "advance"
                            ]
                          },
                          "payerPartnerId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "debitAccountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "creditAccountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatAccountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "expenseAccountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "advanceAccountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "incomeAccountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isPurchase": {
                            "type": "boolean"
                          },
                          "isSale": {
                            "type": "boolean"
                          },
                          "isWriteOff": {
                            "type": "boolean"
                          },
                          "isInternalMovement": {
                            "type": "boolean"
                          },
                          "isPurchaseReturn": {
                            "type": "boolean"
                          },
                          "isSalesReturn": {
                            "type": "boolean"
                          },
                          "isConsignment": {
                            "type": "boolean"
                          },
                          "isProduction": {
                            "type": "boolean"
                          },
                          "isAssetIn": {
                            "type": "boolean"
                          },
                          "isAssetOut": {
                            "type": "boolean"
                          },
                          "isCashRegisterSale": {
                            "type": "boolean"
                          },
                          "includeInVatRegister": {
                            "type": "boolean"
                          },
                          "includeInSaft": {
                            "type": "boolean"
                          },
                          "isActive": {
                            "type": "boolean"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "code",
                          "name",
                          "invoiceType",
                          "payerPartnerId",
                          "debitAccountCode",
                          "creditAccountCode",
                          "vatAccountCode",
                          "expenseAccountCode",
                          "advanceAccountCode",
                          "incomeAccountCode",
                          "isPurchase",
                          "isSale",
                          "isWriteOff",
                          "isInternalMovement",
                          "isPurchaseReturn",
                          "isSalesReturn",
                          "isConsignment",
                          "isProduction",
                          "isAssetIn",
                          "isAssetOut",
                          "isCashRegisterSale",
                          "includeInVatRegister",
                          "includeInSaft",
                          "isActive",
                          "sortOrder",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "operationTypesList",
        "summary": "Operation types list",
        "x-fern-sdk-group-name": "operationTypes",
        "x-fern-sdk-method-name": "list"
      }
    },
    "/v1/document-series/create": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "documentType": {
                    "default": "sale_invoice",
                    "type": "string",
                    "enum": [
                      "sale_invoice",
                      "sale_credit_note",
                      "sale_proforma",
                      "sale_advance"
                    ]
                  },
                  "prefix": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "label": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "operationTypeId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "numberLength": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 12,
                    "format": "int64"
                  },
                  "nextNumber": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "allocatedFrom": {
                    "nullable": true,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "allocatedTo": {
                    "nullable": true,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "warehouseId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "printSeries": {
                    "default": true,
                    "type": "boolean"
                  },
                  "isDefault": {
                    "default": false,
                    "type": "boolean"
                  },
                  "isActive": {
                    "default": true,
                    "type": "boolean"
                  }
                },
                "required": [
                  "prefix"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "prefix": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "label": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "operationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "numberLength": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "nextNumber": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "allocatedFrom": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "allocatedTo": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "warehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "printSeries": {
                      "type": "boolean"
                    },
                    "isDefault": {
                      "type": "boolean"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "documentType",
                    "prefix",
                    "name",
                    "label",
                    "operationTypeId",
                    "numberLength",
                    "nextNumber",
                    "allocatedFrom",
                    "allocatedTo",
                    "warehouseId",
                    "printSeries",
                    "isDefault",
                    "isActive",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "documentSeriesCreate",
        "summary": "Document series create",
        "x-fern-sdk-group-name": "documentSeries",
        "x-fern-sdk-method-name": "create"
      }
    },
    "/v1/document-series/update": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documentType": {
                    "type": "string",
                    "enum": [
                      "sale_invoice",
                      "sale_credit_note",
                      "sale_proforma",
                      "sale_advance"
                    ]
                  },
                  "prefix": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "label": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "operationTypeId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "numberLength": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 12,
                    "format": "int64"
                  },
                  "nextNumber": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "allocatedFrom": {
                    "nullable": true,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "allocatedTo": {
                    "nullable": true,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "warehouseId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "printSeries": {
                    "type": "boolean"
                  },
                  "isDefault": {
                    "type": "boolean"
                  },
                  "isActive": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "prefix": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "label": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "operationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "numberLength": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "nextNumber": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "allocatedFrom": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "allocatedTo": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "warehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "printSeries": {
                      "type": "boolean"
                    },
                    "isDefault": {
                      "type": "boolean"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "documentType",
                    "prefix",
                    "name",
                    "label",
                    "operationTypeId",
                    "numberLength",
                    "nextNumber",
                    "allocatedFrom",
                    "allocatedTo",
                    "warehouseId",
                    "printSeries",
                    "isDefault",
                    "isActive",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "documentSeriesUpdate",
        "summary": "Document series update",
        "x-fern-sdk-group-name": "documentSeries",
        "x-fern-sdk-method-name": "update"
      }
    },
    "/v1/document-series/get": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "prefix": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "label": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "operationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "numberLength": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "nextNumber": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "allocatedFrom": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "allocatedTo": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "warehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "printSeries": {
                      "type": "boolean"
                    },
                    "isDefault": {
                      "type": "boolean"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "documentType",
                    "prefix",
                    "name",
                    "label",
                    "operationTypeId",
                    "numberLength",
                    "nextNumber",
                    "allocatedFrom",
                    "allocatedTo",
                    "warehouseId",
                    "printSeries",
                    "isDefault",
                    "isActive",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "documentSeriesGet",
        "summary": "Document series get",
        "x-fern-sdk-group-name": "documentSeries",
        "x-fern-sdk-method-name": "get"
      }
    },
    "/v1/document-series/delete": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "documentSeriesDelete",
        "summary": "Document series delete",
        "x-fern-sdk-group-name": "documentSeries",
        "x-fern-sdk-method-name": "delete"
      }
    },
    "/v1/document-series/list": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentType": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "prefix": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "label": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "operationTypeId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "numberLength": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "nextNumber": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "allocatedFrom": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "allocatedTo": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "warehouseId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "printSeries": {
                            "type": "boolean"
                          },
                          "isDefault": {
                            "type": "boolean"
                          },
                          "isActive": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "documentType",
                          "prefix",
                          "name",
                          "label",
                          "operationTypeId",
                          "numberLength",
                          "nextNumber",
                          "allocatedFrom",
                          "allocatedTo",
                          "warehouseId",
                          "printSeries",
                          "isDefault",
                          "isActive",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "documentSeriesList",
        "summary": "Document series list",
        "x-fern-sdk-group-name": "documentSeries",
        "x-fern-sdk-method-name": "list"
      }
    },
    "/v1/sales/recognition/compute": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "asOfDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "asOfDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "totalAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "scheduleId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoiceId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoiceFullNumber": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoiceLineId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineDescription": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "scheduleDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "description": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "scheduleId",
                          "invoiceId",
                          "invoiceFullNumber",
                          "invoiceLineId",
                          "lineDescription",
                          "scheduleDate",
                          "description",
                          "amount"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "asOfDate",
                    "totalAmount",
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesRecognitionCompute",
        "summary": "Sales recognition compute",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "recognitionCompute"
      }
    },
    "/v1/sales/recognition/run": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "asOfDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "postingDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "scheduleIds": {
                    "minItems": 1,
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "runId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "runDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "trigger": {
                      "type": "string",
                      "enum": [
                        "manual",
                        "schedule_due",
                        "period_close",
                        "delivery_act",
                        "progress",
                        "modification"
                      ]
                    },
                    "scheduleCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totalAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "runId",
                    "runDate",
                    "trigger",
                    "scheduleCount",
                    "totalAmount",
                    "journalTransactionId"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesRecognitionRun",
        "summary": "Sales recognition run",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "recognitionRun"
      }
    },
    "/v1/sales/recognition/progress": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "invoiceLineId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "percentComplete": {
                    "type": "string",
                    "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "invoiceLineId",
                  "percentComplete"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "runId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "runDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "scheduleCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totalAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "runId",
                    "runDate",
                    "scheduleCount",
                    "totalAmount",
                    "journalTransactionId"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesRecognitionProgress",
        "summary": "Sales recognition progress",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "recognitionProgress"
      }
    },
    "/v1/sales/recognition/modify": {
      "post": {
        "tags": [
          "sales"
        ],
        "description": "Apply an IFRS 15 contract modification to a deferred invoice line. Prospective: cancel the pending schedule and respread the unrecognized remainder over the new terms. Cumulative catch-up (ratable only): recompute revenue as if the new terms applied from the start and post the difference immediately.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "invoiceLineId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "approach": {
                    "type": "string",
                    "enum": [
                      "prospective",
                      "cumulative_catch_up"
                    ]
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "newEndDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "newMilestones": {
                    "minItems": 1,
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "expectedDate": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "percent": {
                          "type": "string",
                          "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        }
                      },
                      "required": [
                        "description",
                        "percent"
                      ]
                    }
                  }
                },
                "required": [
                  "invoiceLineId",
                  "approach"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "invoiceLineId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "approach": {
                      "type": "string",
                      "enum": [
                        "prospective",
                        "cumulative_catch_up"
                      ]
                    },
                    "cancelledCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "newPendingCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "catchUpAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "newEndDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    }
                  },
                  "required": [
                    "invoiceLineId",
                    "approach",
                    "cancelledCount",
                    "newPendingCount",
                    "catchUpAmount",
                    "journalTransactionId",
                    "newEndDate"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesRecognitionModify",
        "summary": "Sales recognition modify",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "recognitionModify"
      }
    },
    "/v1/sales/recognition/runs/list": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "runDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "trigger": {
                            "type": "string",
                            "enum": [
                              "manual",
                              "schedule_due",
                              "period_close",
                              "delivery_act",
                              "progress",
                              "modification"
                            ]
                          },
                          "scheduleCount": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "totalAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "journalTransactionId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "runDate",
                          "trigger",
                          "scheduleCount",
                          "totalAmount",
                          "journalTransactionId",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesRecognitionRunsList",
        "summary": "Sales recognition runs list",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "recognitionRunsList"
      }
    },
    "/v1/sales/recognition/summary": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "invoiceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "invoiceId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoiceFullNumber": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoiceLineId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineDescription": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "method": {
                            "type": "string",
                            "enum": [
                              "point_in_time",
                              "ratable",
                              "milestone",
                              "percent_complete"
                            ]
                          },
                          "deferredTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "recognizedToDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "remaining": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "pendingCount": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "nextScheduleDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          }
                        },
                        "required": [
                          "invoiceId",
                          "invoiceFullNumber",
                          "invoiceLineId",
                          "lineDescription",
                          "method",
                          "deferredTotal",
                          "recognizedToDate",
                          "remaining",
                          "pendingCount",
                          "nextScheduleDate"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "deferredTotal": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "recognizedToDate": {
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "remaining": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "deferredTotal",
                        "recognizedToDate",
                        "remaining"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "rows",
                    "totals"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesRecognitionSummary",
        "summary": "Sales recognition summary",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "recognitionSummary"
      }
    },
    "/v1/sales/refund-liability/list": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoiceId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoiceFullNumber": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "estimated": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "consumed": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "settlementRefunds": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "remaining": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "invoiceId",
                          "invoiceFullNumber",
                          "estimated",
                          "consumed",
                          "settlementRefunds",
                          "remaining",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesRefundLiabilityList",
        "summary": "Sales refund liability list",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "refundLiabilityList"
      }
    },
    "/v1/sales/refund-liability/true-up": {
      "post": {
        "tags": [
          "sales"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "invoiceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "estimatedTotal": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "invoiceId",
                  "estimatedTotal"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "invoiceId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "estimated": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "consumed": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "remaining": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "delta": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "invoiceId",
                    "estimated",
                    "consumed",
                    "remaining",
                    "delta",
                    "journalTransactionId"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "salesRefundLiabilityTrueUp",
        "summary": "Sales refund liability true up",
        "x-fern-sdk-group-name": "sales",
        "x-fern-sdk-method-name": "refundLiabilityTrueUp"
      }
    },
    "/v1/purchases/invoices/create": {
      "post": {
        "tags": [
          "purchases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "type": {
                    "default": "invoice",
                    "type": "string",
                    "enum": [
                      "invoice",
                      "credit_note"
                    ]
                  },
                  "documentNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documentDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "dueDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "creditedInvoiceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "purchaseOrderId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "operationTypeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "intrastatTransportMode": {
                    "type": "string",
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "intrastatDeliveryTerms": {
                    "type": "string",
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "intrastatRegion": {
                    "type": "string",
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "intrastatNatureOfTransaction": {
                    "type": "string",
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "einvoiceNumber": {
                    "type": "string",
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documentRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "lines": {
                    "minItems": 1,
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "itemId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "unit": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "quantity": {
                          "default": 1,
                          "anyOf": [
                            {
                              "type": "number",
                              "minimum": 0,
                              "exclusiveMinimum": true
                            },
                            {
                              "type": "string",
                              "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                              "example": "121.0000"
                            }
                          ]
                        },
                        "unitPriceExclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "unitPriceInclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "vatRatePercent": {
                          "type": "string",
                          "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        },
                        "vatClassifierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "costCenterId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "projectId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "accountCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "pattern": "^[\\s\\S]*$"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "partnerId",
                  "documentNumber",
                  "documentDate",
                  "lines"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "invoice",
                        "credit_note"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "registered"
                      ]
                    },
                    "paymentStatus": {
                      "type": "string",
                      "enum": [
                        "unpaid",
                        "partial",
                        "paid"
                      ]
                    },
                    "documentNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "dueDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "registrationDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "paidAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "purchaseOrderId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "operationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatTransportMode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatDeliveryTerms": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatRegion": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatNatureOfTransaction": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceInclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatClassifierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineGross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "unitPriceExclVat",
                          "unitPriceInclVat",
                          "vatRatePercent",
                          "vatClassifierCode",
                          "costCenterId",
                          "projectId",
                          "accountCode",
                          "lineNet",
                          "lineVat",
                          "lineGross",
                          "sortOrder"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "type",
                    "status",
                    "paymentStatus",
                    "documentNumber",
                    "documentDate",
                    "dueDate",
                    "registrationDate",
                    "currency",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "paidAmount",
                    "journalTransactionId",
                    "creditedInvoiceId",
                    "purchaseOrderId",
                    "operationTypeId",
                    "notes",
                    "intrastatTransportMode",
                    "intrastatDeliveryTerms",
                    "intrastatRegion",
                    "intrastatNatureOfTransaction",
                    "einvoiceNumber",
                    "documentRef",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "purchasesInvoicesCreate",
        "summary": "Purchases invoices create",
        "x-fern-sdk-group-name": "purchases",
        "x-fern-sdk-method-name": "invoicesCreate"
      }
    },
    "/v1/purchases/invoices/get": {
      "post": {
        "tags": [
          "purchases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "invoice",
                        "credit_note"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "registered"
                      ]
                    },
                    "paymentStatus": {
                      "type": "string",
                      "enum": [
                        "unpaid",
                        "partial",
                        "paid"
                      ]
                    },
                    "documentNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "dueDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "registrationDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "paidAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "purchaseOrderId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "operationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatTransportMode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatDeliveryTerms": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatRegion": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatNatureOfTransaction": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceInclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatClassifierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineGross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "unitPriceExclVat",
                          "unitPriceInclVat",
                          "vatRatePercent",
                          "vatClassifierCode",
                          "costCenterId",
                          "projectId",
                          "accountCode",
                          "lineNet",
                          "lineVat",
                          "lineGross",
                          "sortOrder"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "type",
                    "status",
                    "paymentStatus",
                    "documentNumber",
                    "documentDate",
                    "dueDate",
                    "registrationDate",
                    "currency",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "paidAmount",
                    "journalTransactionId",
                    "creditedInvoiceId",
                    "purchaseOrderId",
                    "operationTypeId",
                    "notes",
                    "intrastatTransportMode",
                    "intrastatDeliveryTerms",
                    "intrastatRegion",
                    "intrastatNatureOfTransaction",
                    "einvoiceNumber",
                    "documentRef",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "purchasesInvoicesGet",
        "summary": "Purchases invoices get",
        "x-fern-sdk-group-name": "purchases",
        "x-fern-sdk-method-name": "invoicesGet"
      }
    },
    "/v1/purchases/invoices/update": {
      "post": {
        "tags": [
          "purchases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documentNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documentDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "dueDate": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "purchaseOrderId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "operationTypeId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "intrastatTransportMode": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "intrastatDeliveryTerms": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "intrastatRegion": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "intrastatNatureOfTransaction": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "einvoiceNumber": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "lines": {
                    "minItems": 1,
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "itemId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "unit": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "quantity": {
                          "default": 1,
                          "anyOf": [
                            {
                              "type": "number",
                              "minimum": 0,
                              "exclusiveMinimum": true
                            },
                            {
                              "type": "string",
                              "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                              "example": "121.0000"
                            }
                          ]
                        },
                        "unitPriceExclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "unitPriceInclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "vatRatePercent": {
                          "type": "string",
                          "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        },
                        "vatClassifierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "costCenterId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "projectId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "accountCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "pattern": "^[\\s\\S]*$"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "invoice",
                        "credit_note"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "registered"
                      ]
                    },
                    "paymentStatus": {
                      "type": "string",
                      "enum": [
                        "unpaid",
                        "partial",
                        "paid"
                      ]
                    },
                    "documentNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "dueDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "registrationDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "paidAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "purchaseOrderId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "operationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatTransportMode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatDeliveryTerms": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatRegion": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatNatureOfTransaction": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceInclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatClassifierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineGross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "unitPriceExclVat",
                          "unitPriceInclVat",
                          "vatRatePercent",
                          "vatClassifierCode",
                          "costCenterId",
                          "projectId",
                          "accountCode",
                          "lineNet",
                          "lineVat",
                          "lineGross",
                          "sortOrder"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "type",
                    "status",
                    "paymentStatus",
                    "documentNumber",
                    "documentDate",
                    "dueDate",
                    "registrationDate",
                    "currency",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "paidAmount",
                    "journalTransactionId",
                    "creditedInvoiceId",
                    "purchaseOrderId",
                    "operationTypeId",
                    "notes",
                    "intrastatTransportMode",
                    "intrastatDeliveryTerms",
                    "intrastatRegion",
                    "intrastatNatureOfTransaction",
                    "einvoiceNumber",
                    "documentRef",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "purchasesInvoicesUpdate",
        "summary": "Purchases invoices update",
        "x-fern-sdk-group-name": "purchases",
        "x-fern-sdk-method-name": "invoicesUpdate"
      }
    },
    "/v1/purchases/invoices/delete": {
      "post": {
        "tags": [
          "purchases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "purchasesInvoicesDelete",
        "summary": "Purchases invoices delete",
        "x-fern-sdk-group-name": "purchases",
        "x-fern-sdk-method-name": "invoicesDelete"
      }
    },
    "/v1/purchases/invoices/register": {
      "post": {
        "tags": [
          "purchases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "registrationDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "invoice",
                        "credit_note"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "registered"
                      ]
                    },
                    "paymentStatus": {
                      "type": "string",
                      "enum": [
                        "unpaid",
                        "partial",
                        "paid"
                      ]
                    },
                    "documentNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "dueDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "registrationDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "paidAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "creditedInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "purchaseOrderId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "operationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatTransportMode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatDeliveryTerms": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatRegion": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intrastatNatureOfTransaction": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "einvoiceNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceInclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatClassifierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineGross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "unitPriceExclVat",
                          "unitPriceInclVat",
                          "vatRatePercent",
                          "vatClassifierCode",
                          "costCenterId",
                          "projectId",
                          "accountCode",
                          "lineNet",
                          "lineVat",
                          "lineGross",
                          "sortOrder"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "type",
                    "status",
                    "paymentStatus",
                    "documentNumber",
                    "documentDate",
                    "dueDate",
                    "registrationDate",
                    "currency",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "paidAmount",
                    "journalTransactionId",
                    "creditedInvoiceId",
                    "purchaseOrderId",
                    "operationTypeId",
                    "notes",
                    "intrastatTransportMode",
                    "intrastatDeliveryTerms",
                    "intrastatRegion",
                    "intrastatNatureOfTransaction",
                    "einvoiceNumber",
                    "documentRef",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "purchasesInvoicesRegister",
        "summary": "Purchases invoices register",
        "x-fern-sdk-group-name": "purchases",
        "x-fern-sdk-method-name": "invoicesRegister"
      }
    },
    "/v1/purchases/invoices/list": {
      "post": {
        "tags": [
          "purchases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "invoice",
                              "credit_note"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "registered"
                            ]
                          },
                          "paymentStatus": {
                            "type": "string",
                            "enum": [
                              "unpaid",
                              "partial",
                              "paid"
                            ]
                          },
                          "documentNumber": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "dueDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "registrationDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "netTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "grossTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "paidAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "journalTransactionId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "creditedInvoiceId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "purchaseOrderId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "operationTypeId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "intrastatTransportMode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "intrastatDeliveryTerms": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "intrastatRegion": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "intrastatNatureOfTransaction": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "einvoiceNumber": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentRef": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "partnerName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "partnerId",
                          "type",
                          "status",
                          "paymentStatus",
                          "documentNumber",
                          "documentDate",
                          "dueDate",
                          "registrationDate",
                          "currency",
                          "netTotal",
                          "vatTotal",
                          "grossTotal",
                          "paidAmount",
                          "journalTransactionId",
                          "creditedInvoiceId",
                          "purchaseOrderId",
                          "operationTypeId",
                          "notes",
                          "intrastatTransportMode",
                          "intrastatDeliveryTerms",
                          "intrastatRegion",
                          "intrastatNatureOfTransaction",
                          "einvoiceNumber",
                          "documentRef",
                          "createdAt",
                          "updatedAt",
                          "partnerName"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "purchasesInvoicesList",
        "summary": "Purchases invoices list",
        "x-fern-sdk-group-name": "purchases",
        "x-fern-sdk-method-name": "invoicesList"
      }
    },
    "/v1/purchases/orders/create": {
      "post": {
        "tags": [
          "purchases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "orderNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "orderDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "expectedDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documentRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "lines": {
                    "minItems": 1,
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "itemId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "unit": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "quantity": {
                          "default": 1,
                          "anyOf": [
                            {
                              "type": "number",
                              "minimum": 0,
                              "exclusiveMinimum": true
                            },
                            {
                              "type": "string",
                              "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                              "example": "121.0000"
                            }
                          ]
                        },
                        "unitPriceExclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "unitPriceInclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "vatRatePercent": {
                          "type": "string",
                          "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        },
                        "vatClassifierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "costCenterId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "projectId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "accountCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "pattern": "^[\\s\\S]*$"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "partnerId",
                  "orderDate",
                  "lines"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "submitted",
                        "approved",
                        "partially_received",
                        "received",
                        "closed",
                        "cancelled"
                      ]
                    },
                    "orderNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "orderDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "expectedDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "warehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "approvedBy": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "approvedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "receivedQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "remainingQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceInclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatClassifierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineGross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "receivedQty",
                          "remainingQty",
                          "unitPriceExclVat",
                          "unitPriceInclVat",
                          "vatRatePercent",
                          "vatClassifierCode",
                          "costCenterId",
                          "projectId",
                          "accountCode",
                          "lineNet",
                          "lineVat",
                          "lineGross",
                          "sortOrder"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "status",
                    "orderNumber",
                    "orderDate",
                    "expectedDate",
                    "warehouseId",
                    "currency",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "approvedBy",
                    "approvedAt",
                    "notes",
                    "documentRef",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "purchasesOrdersCreate",
        "summary": "Purchases orders create",
        "x-fern-sdk-group-name": "purchases",
        "x-fern-sdk-method-name": "ordersCreate"
      }
    },
    "/v1/purchases/orders/update": {
      "post": {
        "tags": [
          "purchases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "orderDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "expectedDate": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "warehouseId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "lines": {
                    "minItems": 1,
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "itemId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "unit": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "quantity": {
                          "default": 1,
                          "anyOf": [
                            {
                              "type": "number",
                              "minimum": 0,
                              "exclusiveMinimum": true
                            },
                            {
                              "type": "string",
                              "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                              "example": "121.0000"
                            }
                          ]
                        },
                        "unitPriceExclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "unitPriceInclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "vatRatePercent": {
                          "type": "string",
                          "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        },
                        "vatClassifierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "costCenterId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "projectId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "accountCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "pattern": "^[\\s\\S]*$"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "submitted",
                        "approved",
                        "partially_received",
                        "received",
                        "closed",
                        "cancelled"
                      ]
                    },
                    "orderNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "orderDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "expectedDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "warehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "approvedBy": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "approvedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "receivedQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "remainingQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceInclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatClassifierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineGross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "receivedQty",
                          "remainingQty",
                          "unitPriceExclVat",
                          "unitPriceInclVat",
                          "vatRatePercent",
                          "vatClassifierCode",
                          "costCenterId",
                          "projectId",
                          "accountCode",
                          "lineNet",
                          "lineVat",
                          "lineGross",
                          "sortOrder"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "status",
                    "orderNumber",
                    "orderDate",
                    "expectedDate",
                    "warehouseId",
                    "currency",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "approvedBy",
                    "approvedAt",
                    "notes",
                    "documentRef",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "purchasesOrdersUpdate",
        "summary": "Purchases orders update",
        "x-fern-sdk-group-name": "purchases",
        "x-fern-sdk-method-name": "ordersUpdate"
      }
    },
    "/v1/purchases/orders/get": {
      "post": {
        "tags": [
          "purchases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "submitted",
                        "approved",
                        "partially_received",
                        "received",
                        "closed",
                        "cancelled"
                      ]
                    },
                    "orderNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "orderDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "expectedDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "warehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "approvedBy": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "approvedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "receivedQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "remainingQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceInclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatClassifierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineGross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "receivedQty",
                          "remainingQty",
                          "unitPriceExclVat",
                          "unitPriceInclVat",
                          "vatRatePercent",
                          "vatClassifierCode",
                          "costCenterId",
                          "projectId",
                          "accountCode",
                          "lineNet",
                          "lineVat",
                          "lineGross",
                          "sortOrder"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "status",
                    "orderNumber",
                    "orderDate",
                    "expectedDate",
                    "warehouseId",
                    "currency",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "approvedBy",
                    "approvedAt",
                    "notes",
                    "documentRef",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "purchasesOrdersGet",
        "summary": "Purchases orders get",
        "x-fern-sdk-group-name": "purchases",
        "x-fern-sdk-method-name": "ordersGet"
      }
    },
    "/v1/purchases/orders/list": {
      "post": {
        "tags": [
          "purchases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "submitted",
                              "approved",
                              "partially_received",
                              "received",
                              "closed",
                              "cancelled"
                            ]
                          },
                          "orderNumber": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "orderDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "expectedDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "warehouseId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "netTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "grossTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "approvedBy": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "approvedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentRef": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "partnerName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "partnerId",
                          "status",
                          "orderNumber",
                          "orderDate",
                          "expectedDate",
                          "warehouseId",
                          "currency",
                          "netTotal",
                          "vatTotal",
                          "grossTotal",
                          "approvedBy",
                          "approvedAt",
                          "notes",
                          "documentRef",
                          "createdAt",
                          "updatedAt",
                          "partnerName"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "purchasesOrdersList",
        "summary": "Purchases orders list",
        "x-fern-sdk-group-name": "purchases",
        "x-fern-sdk-method-name": "ordersList"
      }
    },
    "/v1/purchases/orders/submit": {
      "post": {
        "tags": [
          "purchases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "reason": {
                    "type": "string",
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "submitted",
                        "approved",
                        "partially_received",
                        "received",
                        "closed",
                        "cancelled"
                      ]
                    },
                    "orderNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "orderDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "expectedDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "warehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "approvedBy": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "approvedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "receivedQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "remainingQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceInclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatClassifierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineGross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "receivedQty",
                          "remainingQty",
                          "unitPriceExclVat",
                          "unitPriceInclVat",
                          "vatRatePercent",
                          "vatClassifierCode",
                          "costCenterId",
                          "projectId",
                          "accountCode",
                          "lineNet",
                          "lineVat",
                          "lineGross",
                          "sortOrder"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "status",
                    "orderNumber",
                    "orderDate",
                    "expectedDate",
                    "warehouseId",
                    "currency",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "approvedBy",
                    "approvedAt",
                    "notes",
                    "documentRef",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "purchasesOrdersSubmit",
        "summary": "Purchases orders submit",
        "x-fern-sdk-group-name": "purchases",
        "x-fern-sdk-method-name": "ordersSubmit"
      }
    },
    "/v1/purchases/orders/approve": {
      "post": {
        "tags": [
          "purchases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "reason": {
                    "type": "string",
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "submitted",
                        "approved",
                        "partially_received",
                        "received",
                        "closed",
                        "cancelled"
                      ]
                    },
                    "orderNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "orderDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "expectedDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "warehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "approvedBy": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "approvedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "receivedQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "remainingQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceInclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatClassifierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineGross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "receivedQty",
                          "remainingQty",
                          "unitPriceExclVat",
                          "unitPriceInclVat",
                          "vatRatePercent",
                          "vatClassifierCode",
                          "costCenterId",
                          "projectId",
                          "accountCode",
                          "lineNet",
                          "lineVat",
                          "lineGross",
                          "sortOrder"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "status",
                    "orderNumber",
                    "orderDate",
                    "expectedDate",
                    "warehouseId",
                    "currency",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "approvedBy",
                    "approvedAt",
                    "notes",
                    "documentRef",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "purchasesOrdersApprove",
        "summary": "Purchases orders approve",
        "x-fern-sdk-group-name": "purchases",
        "x-fern-sdk-method-name": "ordersApprove"
      }
    },
    "/v1/purchases/orders/reject": {
      "post": {
        "tags": [
          "purchases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "reason": {
                    "type": "string",
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "submitted",
                        "approved",
                        "partially_received",
                        "received",
                        "closed",
                        "cancelled"
                      ]
                    },
                    "orderNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "orderDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "expectedDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "warehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "approvedBy": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "approvedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "receivedQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "remainingQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceInclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatClassifierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineGross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "receivedQty",
                          "remainingQty",
                          "unitPriceExclVat",
                          "unitPriceInclVat",
                          "vatRatePercent",
                          "vatClassifierCode",
                          "costCenterId",
                          "projectId",
                          "accountCode",
                          "lineNet",
                          "lineVat",
                          "lineGross",
                          "sortOrder"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "status",
                    "orderNumber",
                    "orderDate",
                    "expectedDate",
                    "warehouseId",
                    "currency",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "approvedBy",
                    "approvedAt",
                    "notes",
                    "documentRef",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "purchasesOrdersReject",
        "summary": "Purchases orders reject",
        "x-fern-sdk-group-name": "purchases",
        "x-fern-sdk-method-name": "ordersReject"
      }
    },
    "/v1/purchases/orders/cancel": {
      "post": {
        "tags": [
          "purchases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "reason": {
                    "type": "string",
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "submitted",
                        "approved",
                        "partially_received",
                        "received",
                        "closed",
                        "cancelled"
                      ]
                    },
                    "orderNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "orderDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "expectedDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "warehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "approvedBy": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "approvedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "receivedQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "remainingQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceInclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatClassifierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineGross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "receivedQty",
                          "remainingQty",
                          "unitPriceExclVat",
                          "unitPriceInclVat",
                          "vatRatePercent",
                          "vatClassifierCode",
                          "costCenterId",
                          "projectId",
                          "accountCode",
                          "lineNet",
                          "lineVat",
                          "lineGross",
                          "sortOrder"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "status",
                    "orderNumber",
                    "orderDate",
                    "expectedDate",
                    "warehouseId",
                    "currency",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "approvedBy",
                    "approvedAt",
                    "notes",
                    "documentRef",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "purchasesOrdersCancel",
        "summary": "Purchases orders cancel",
        "x-fern-sdk-group-name": "purchases",
        "x-fern-sdk-method-name": "ordersCancel"
      }
    },
    "/v1/purchases/orders/close": {
      "post": {
        "tags": [
          "purchases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "reason": {
                    "type": "string",
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "submitted",
                        "approved",
                        "partially_received",
                        "received",
                        "closed",
                        "cancelled"
                      ]
                    },
                    "orderNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "orderDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "expectedDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "warehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "approvedBy": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "approvedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "receivedQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "remainingQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceInclVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatClassifierCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineNet": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineGross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "receivedQty",
                          "remainingQty",
                          "unitPriceExclVat",
                          "unitPriceInclVat",
                          "vatRatePercent",
                          "vatClassifierCode",
                          "costCenterId",
                          "projectId",
                          "accountCode",
                          "lineNet",
                          "lineVat",
                          "lineGross",
                          "sortOrder"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "status",
                    "orderNumber",
                    "orderDate",
                    "expectedDate",
                    "warehouseId",
                    "currency",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "approvedBy",
                    "approvedAt",
                    "notes",
                    "documentRef",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "purchasesOrdersClose",
        "summary": "Purchases orders close",
        "x-fern-sdk-group-name": "purchases",
        "x-fern-sdk-method-name": "ordersClose"
      }
    },
    "/v1/purchases/orders/delete": {
      "post": {
        "tags": [
          "purchases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "purchasesOrdersDelete",
        "summary": "Purchases orders delete",
        "x-fern-sdk-group-name": "purchases",
        "x-fern-sdk-method-name": "ordersDelete"
      }
    },
    "/v1/purchases/receipts/create": {
      "post": {
        "tags": [
          "purchases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "orderId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "receiptDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "lines": {
                    "minItems": 1,
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "orderLineId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "quantity": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "lotNumber": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "expiryDate": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        }
                      },
                      "required": [
                        "orderLineId",
                        "quantity"
                      ]
                    }
                  }
                },
                "required": [
                  "orderId",
                  "receiptDate",
                  "lines"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "orderId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "receiptNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "receiptDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "warehouseId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "orderLineId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitCost": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "stockMovementId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "orderLineId",
                          "itemId",
                          "quantity",
                          "unitCost",
                          "stockMovementId"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "orderId",
                    "receiptNumber",
                    "receiptDate",
                    "warehouseId",
                    "notes",
                    "createdAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "purchasesReceiptsCreate",
        "summary": "Purchases receipts create",
        "x-fern-sdk-group-name": "purchases",
        "x-fern-sdk-method-name": "receiptsCreate"
      }
    },
    "/v1/purchases/receipts/get": {
      "post": {
        "tags": [
          "purchases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "orderId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "receiptNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "receiptDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "warehouseId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "orderLineId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitCost": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "stockMovementId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "orderLineId",
                          "itemId",
                          "quantity",
                          "unitCost",
                          "stockMovementId"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "orderId",
                    "receiptNumber",
                    "receiptDate",
                    "warehouseId",
                    "notes",
                    "createdAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "purchasesReceiptsGet",
        "summary": "Purchases receipts get",
        "x-fern-sdk-group-name": "purchases",
        "x-fern-sdk-method-name": "receiptsGet"
      }
    },
    "/v1/purchases/receipts/list": {
      "post": {
        "tags": [
          "purchases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "orderId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "receiptNumber": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "receiptDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "warehouseId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "orderId",
                          "receiptNumber",
                          "receiptDate",
                          "warehouseId",
                          "notes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "purchasesReceiptsList",
        "summary": "Purchases receipts list",
        "x-fern-sdk-group-name": "purchases",
        "x-fern-sdk-method-name": "receiptsList"
      }
    },
    "/v1/purchases/invoices/match": {
      "post": {
        "tags": [
          "purchases"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "invoiceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "priceTolerancePercent": {
                    "default": "0",
                    "type": "string",
                    "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  }
                },
                "required": [
                  "invoiceId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "invoiceId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "orderId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "matched",
                        "mismatched"
                      ]
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "orderedQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "receivedQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoicedQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "orderedUnitPrice": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoicedUnitPrice": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "priceVariancePercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "matched",
                              "not_received",
                              "over_invoiced",
                              "price_mismatch",
                              "not_on_order",
                              "not_invoiced"
                            ]
                          }
                        },
                        "required": [
                          "itemId",
                          "description",
                          "orderedQty",
                          "receivedQty",
                          "invoicedQty",
                          "orderedUnitPrice",
                          "invoicedUnitPrice",
                          "priceVariancePercent",
                          "status"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "invoiceId",
                    "orderId",
                    "status",
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "purchasesInvoicesMatch",
        "summary": "Purchases invoices match",
        "x-fern-sdk-group-name": "purchases",
        "x-fern-sdk-method-name": "invoicesMatch"
      }
    },
    "/v1/capture/settings/get": {
      "post": {
        "tags": [
          "capture"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "intakeEnabled": {
                      "type": "boolean"
                    },
                    "captureAutoExtract": {
                      "type": "boolean"
                    },
                    "intakeAddress": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "ocrConfigured": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "intakeEnabled",
                    "captureAutoExtract",
                    "intakeAddress",
                    "ocrConfigured"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "captureSettingsGet",
        "summary": "Capture settings get",
        "x-fern-sdk-group-name": "capture",
        "x-fern-sdk-method-name": "settingsGet"
      }
    },
    "/v1/capture/settings/update": {
      "post": {
        "tags": [
          "capture"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "intakeEnabled": {
                    "type": "boolean"
                  },
                  "captureAutoExtract": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "intakeEnabled": {
                      "type": "boolean"
                    },
                    "captureAutoExtract": {
                      "type": "boolean"
                    },
                    "intakeAddress": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "ocrConfigured": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "intakeEnabled",
                    "captureAutoExtract",
                    "intakeAddress",
                    "ocrConfigured"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "captureSettingsUpdate",
        "summary": "Capture settings update",
        "x-fern-sdk-group-name": "capture",
        "x-fern-sdk-method-name": "settingsUpdate"
      }
    },
    "/v1/capture/settings/regenerate-intake": {
      "post": {
        "tags": [
          "capture"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "intakeEnabled": {
                      "type": "boolean"
                    },
                    "captureAutoExtract": {
                      "type": "boolean"
                    },
                    "intakeAddress": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "ocrConfigured": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "intakeEnabled",
                    "captureAutoExtract",
                    "intakeAddress",
                    "ocrConfigured"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "captureSettingsRegenerateIntake",
        "summary": "Capture settings regenerate intake",
        "x-fern-sdk-group-name": "capture",
        "x-fern-sdk-method-name": "settingsRegenerateIntake"
      }
    },
    "/v1/capture/inbound-email": {
      "post": {
        "summary": "Receive an inbound email with supplier documents attached (Postmark-style or generic JSON)",
        "tags": [
          "capture"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "To": {
                    "type": "string",
                    "x-fern-property-name": "postmarkTo",
                    "pattern": "^[\\s\\S]*$"
                  },
                  "ToFull": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "Email": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "additionalProperties": {},
                      "maxProperties": 100
                    }
                  },
                  "From": {
                    "type": "string",
                    "x-fern-property-name": "postmarkFrom",
                    "pattern": "^[\\s\\S]*$"
                  },
                  "Subject": {
                    "type": "string",
                    "x-fern-property-name": "postmarkSubject",
                    "pattern": "^[\\s\\S]*$"
                  },
                  "Attachments": {
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "Name": {
                          "type": "string",
                          "x-fern-property-name": "postmarkName",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "Content": {
                          "type": "string",
                          "x-fern-property-name": "postmarkContent",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "ContentType": {
                          "type": "string",
                          "x-fern-property-name": "postmarkContentType",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "fileName": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "mimeType": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "content": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      }
                    },
                    "x-fern-property-name": "postmarkAttachments"
                  },
                  "to": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      }
                    ]
                  },
                  "from": {
                    "type": "string",
                    "pattern": "^[\\s\\S]*$"
                  },
                  "subject": {
                    "type": "string",
                    "pattern": "^[\\s\\S]*$"
                  },
                  "attachments": {
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "Name": {
                          "type": "string",
                          "x-fern-property-name": "postmarkName",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "Content": {
                          "type": "string",
                          "x-fern-property-name": "postmarkContent",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "ContentType": {
                          "type": "string",
                          "x-fern-property-name": "postmarkContentType",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "fileName": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "mimeType": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "content": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "accepted": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "skipped": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "captureIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64,
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "accepted",
                    "skipped",
                    "captureIds"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "captureInboundEmail",
        "x-fern-sdk-group-name": "capture",
        "x-fern-sdk-method-name": "inboundEmail"
      }
    },
    "/v1/capture/documents/upload": {
      "post": {
        "summary": "Read a vendor bill or receipt and return an editable purchase invoice draft",
        "tags": [
          "capture"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "mimeType": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 150,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "content": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Base64-encoded scan, photo or PDF of the supplier document",
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "fileName",
                  "mimeType",
                  "content"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "mimeType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sizeBytes": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "extracted",
                        "failed",
                        "linked"
                      ]
                    },
                    "provider": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "model": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "pagesProcessed": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "extraction": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "supplier": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "code": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "countryCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "iban": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "name",
                            "code",
                            "vatCode",
                            "countryCode",
                            "iban"
                          ],
                          "additionalProperties": false
                        },
                        "documentNumber": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "documentDate": {
                          "nullable": true,
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "dueDate": {
                          "nullable": true,
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "currency": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "netTotal": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "vatTotal": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "grossTotal": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "notes": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "lines": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "description": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "quantity": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "unit": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "unitPriceExclVat": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "vatRatePercent": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "lineNet": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "lineVat": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "lineGross": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "description",
                              "quantity",
                              "unit",
                              "unitPriceExclVat",
                              "vatRatePercent",
                              "lineNet",
                              "lineVat",
                              "lineGross"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "supplier",
                        "documentNumber",
                        "documentDate",
                        "dueDate",
                        "currency",
                        "netTotal",
                        "vatTotal",
                        "grossTotal",
                        "notes",
                        "lines"
                      ],
                      "additionalProperties": false
                    },
                    "matchedPartnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "purchaseInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "error": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "rawText": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "fileId",
                    "fileName",
                    "mimeType",
                    "sizeBytes",
                    "status",
                    "provider",
                    "model",
                    "pagesProcessed",
                    "extraction",
                    "matchedPartnerId",
                    "purchaseInvoiceId",
                    "error",
                    "createdAt",
                    "updatedAt",
                    "rawText"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "captureDocumentsUpload",
        "x-fern-sdk-group-name": "capture",
        "x-fern-sdk-method-name": "documentsUpload"
      }
    },
    "/v1/capture/documents/extract": {
      "post": {
        "summary": "Re-read a stored capture, replacing the previous draft",
        "tags": [
          "capture"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "mimeType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sizeBytes": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "extracted",
                        "failed",
                        "linked"
                      ]
                    },
                    "provider": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "model": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "pagesProcessed": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "extraction": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "supplier": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "code": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "countryCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "iban": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "name",
                            "code",
                            "vatCode",
                            "countryCode",
                            "iban"
                          ],
                          "additionalProperties": false
                        },
                        "documentNumber": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "documentDate": {
                          "nullable": true,
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "dueDate": {
                          "nullable": true,
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "currency": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "netTotal": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "vatTotal": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "grossTotal": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "notes": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "lines": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "description": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "quantity": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "unit": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "unitPriceExclVat": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "vatRatePercent": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "lineNet": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "lineVat": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "lineGross": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "description",
                              "quantity",
                              "unit",
                              "unitPriceExclVat",
                              "vatRatePercent",
                              "lineNet",
                              "lineVat",
                              "lineGross"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "supplier",
                        "documentNumber",
                        "documentDate",
                        "dueDate",
                        "currency",
                        "netTotal",
                        "vatTotal",
                        "grossTotal",
                        "notes",
                        "lines"
                      ],
                      "additionalProperties": false
                    },
                    "matchedPartnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "purchaseInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "error": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "rawText": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "fileId",
                    "fileName",
                    "mimeType",
                    "sizeBytes",
                    "status",
                    "provider",
                    "model",
                    "pagesProcessed",
                    "extraction",
                    "matchedPartnerId",
                    "purchaseInvoiceId",
                    "error",
                    "createdAt",
                    "updatedAt",
                    "rawText"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "captureDocumentsExtract",
        "x-fern-sdk-group-name": "capture",
        "x-fern-sdk-method-name": "documentsExtract"
      }
    },
    "/v1/capture/documents/get": {
      "post": {
        "tags": [
          "capture"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "mimeType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sizeBytes": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "extracted",
                        "failed",
                        "linked"
                      ]
                    },
                    "provider": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "model": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "pagesProcessed": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "extraction": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "supplier": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "code": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "countryCode": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "iban": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "name",
                            "code",
                            "vatCode",
                            "countryCode",
                            "iban"
                          ],
                          "additionalProperties": false
                        },
                        "documentNumber": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "documentDate": {
                          "nullable": true,
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "dueDate": {
                          "nullable": true,
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "currency": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "netTotal": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "vatTotal": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "grossTotal": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "notes": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "lines": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "description": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "quantity": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "unit": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "unitPriceExclVat": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "vatRatePercent": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "lineNet": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "lineVat": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "lineGross": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "description",
                              "quantity",
                              "unit",
                              "unitPriceExclVat",
                              "vatRatePercent",
                              "lineNet",
                              "lineVat",
                              "lineGross"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "supplier",
                        "documentNumber",
                        "documentDate",
                        "dueDate",
                        "currency",
                        "netTotal",
                        "vatTotal",
                        "grossTotal",
                        "notes",
                        "lines"
                      ],
                      "additionalProperties": false
                    },
                    "matchedPartnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "purchaseInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "error": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "rawText": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "fileId",
                    "fileName",
                    "mimeType",
                    "sizeBytes",
                    "status",
                    "provider",
                    "model",
                    "pagesProcessed",
                    "extraction",
                    "matchedPartnerId",
                    "purchaseInvoiceId",
                    "error",
                    "createdAt",
                    "updatedAt",
                    "rawText"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "captureDocumentsGet",
        "summary": "Capture documents get",
        "x-fern-sdk-group-name": "capture",
        "x-fern-sdk-method-name": "documentsGet"
      }
    },
    "/v1/capture/documents/list": {
      "post": {
        "tags": [
          "capture"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "mimeType": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sizeBytes": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "extracted",
                              "failed",
                              "linked"
                            ]
                          },
                          "provider": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "model": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "pagesProcessed": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "extraction": {
                            "nullable": true,
                            "type": "object",
                            "properties": {
                              "supplier": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "nullable": true,
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "code": {
                                    "nullable": true,
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "vatCode": {
                                    "nullable": true,
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "countryCode": {
                                    "nullable": true,
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "iban": {
                                    "nullable": true,
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  }
                                },
                                "required": [
                                  "name",
                                  "code",
                                  "vatCode",
                                  "countryCode",
                                  "iban"
                                ],
                                "additionalProperties": false
                              },
                              "documentNumber": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "documentDate": {
                                "nullable": true,
                                "type": "string",
                                "format": "date",
                                "example": "2026-07-01"
                              },
                              "dueDate": {
                                "nullable": true,
                                "type": "string",
                                "format": "date",
                                "example": "2026-07-01"
                              },
                              "currency": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "netTotal": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "vatTotal": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "grossTotal": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "notes": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "lines": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "description": {
                                      "type": "string",
                                      "pattern": "^[\\s\\S]*$"
                                    },
                                    "quantity": {
                                      "type": "string",
                                      "pattern": "^[\\s\\S]*$"
                                    },
                                    "unit": {
                                      "nullable": true,
                                      "type": "string",
                                      "pattern": "^[\\s\\S]*$"
                                    },
                                    "unitPriceExclVat": {
                                      "nullable": true,
                                      "type": "string",
                                      "pattern": "^[\\s\\S]*$"
                                    },
                                    "vatRatePercent": {
                                      "nullable": true,
                                      "type": "string",
                                      "pattern": "^[\\s\\S]*$"
                                    },
                                    "lineNet": {
                                      "nullable": true,
                                      "type": "string",
                                      "pattern": "^[\\s\\S]*$"
                                    },
                                    "lineVat": {
                                      "nullable": true,
                                      "type": "string",
                                      "pattern": "^[\\s\\S]*$"
                                    },
                                    "lineGross": {
                                      "nullable": true,
                                      "type": "string",
                                      "pattern": "^[\\s\\S]*$"
                                    }
                                  },
                                  "required": [
                                    "description",
                                    "quantity",
                                    "unit",
                                    "unitPriceExclVat",
                                    "vatRatePercent",
                                    "lineNet",
                                    "lineVat",
                                    "lineGross"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "supplier",
                              "documentNumber",
                              "documentDate",
                              "dueDate",
                              "currency",
                              "netTotal",
                              "vatTotal",
                              "grossTotal",
                              "notes",
                              "lines"
                            ],
                            "additionalProperties": false
                          },
                          "matchedPartnerId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "purchaseInvoiceId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "error": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "fileId",
                          "fileName",
                          "mimeType",
                          "sizeBytes",
                          "status",
                          "provider",
                          "model",
                          "pagesProcessed",
                          "extraction",
                          "matchedPartnerId",
                          "purchaseInvoiceId",
                          "error",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "captureDocumentsList",
        "summary": "Capture documents list",
        "x-fern-sdk-group-name": "capture",
        "x-fern-sdk-method-name": "documentsList"
      }
    },
    "/v1/capture/documents/delete": {
      "post": {
        "tags": [
          "capture"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "captureDocumentsDelete",
        "summary": "Capture documents delete",
        "x-fern-sdk-group-name": "capture",
        "x-fern-sdk-method-name": "documentsDelete"
      }
    },
    "/v1/capture/documents/confirm": {
      "post": {
        "summary": "Save the reviewed draft as a purchase invoice and attach the original document",
        "tags": [
          "capture"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "newSupplier": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "code": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 50,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "vatCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 50,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "countryCode": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 2,
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "required": [
                      "name"
                    ]
                  },
                  "documentNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documentDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "dueDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "lines": {
                    "minItems": 1,
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "itemId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "unit": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "quantity": {
                          "default": 1,
                          "anyOf": [
                            {
                              "type": "number",
                              "minimum": 0,
                              "exclusiveMinimum": true
                            },
                            {
                              "type": "string",
                              "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                              "example": "121.0000"
                            }
                          ]
                        },
                        "unitPriceExclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "unitPriceInclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "vatRatePercent": {
                          "type": "string",
                          "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        },
                        "vatClassifierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "costCenterId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "projectId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "accountCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "pattern": "^[\\s\\S]*$"
                        }
                      }
                    }
                  }
                },
                "required": [
                  "id",
                  "documentNumber",
                  "documentDate",
                  "lines"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "capture": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "fileId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "fileName": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "mimeType": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "sizeBytes": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "pending",
                            "extracted",
                            "failed",
                            "linked"
                          ]
                        },
                        "provider": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "model": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "pagesProcessed": {
                          "nullable": true,
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "extraction": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "supplier": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "nullable": true,
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "code": {
                                  "nullable": true,
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "vatCode": {
                                  "nullable": true,
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "countryCode": {
                                  "nullable": true,
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "iban": {
                                  "nullable": true,
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "name",
                                "code",
                                "vatCode",
                                "countryCode",
                                "iban"
                              ],
                              "additionalProperties": false
                            },
                            "documentNumber": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "documentDate": {
                              "nullable": true,
                              "type": "string",
                              "format": "date",
                              "example": "2026-07-01"
                            },
                            "dueDate": {
                              "nullable": true,
                              "type": "string",
                              "format": "date",
                              "example": "2026-07-01"
                            },
                            "currency": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "netTotal": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "vatTotal": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "grossTotal": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "notes": {
                              "nullable": true,
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "lines": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "description": {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "quantity": {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "unit": {
                                    "nullable": true,
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "unitPriceExclVat": {
                                    "nullable": true,
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "vatRatePercent": {
                                    "nullable": true,
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "lineNet": {
                                    "nullable": true,
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "lineVat": {
                                    "nullable": true,
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "lineGross": {
                                    "nullable": true,
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  }
                                },
                                "required": [
                                  "description",
                                  "quantity",
                                  "unit",
                                  "unitPriceExclVat",
                                  "vatRatePercent",
                                  "lineNet",
                                  "lineVat",
                                  "lineGross"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "supplier",
                            "documentNumber",
                            "documentDate",
                            "dueDate",
                            "currency",
                            "netTotal",
                            "vatTotal",
                            "grossTotal",
                            "notes",
                            "lines"
                          ],
                          "additionalProperties": false
                        },
                        "matchedPartnerId": {
                          "nullable": true,
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "purchaseInvoiceId": {
                          "nullable": true,
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "error": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        }
                      },
                      "required": [
                        "id",
                        "fileId",
                        "fileName",
                        "mimeType",
                        "sizeBytes",
                        "status",
                        "provider",
                        "model",
                        "pagesProcessed",
                        "extraction",
                        "matchedPartnerId",
                        "purchaseInvoiceId",
                        "error",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    },
                    "invoice": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "partnerId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "invoice",
                            "credit_note"
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "draft",
                            "registered"
                          ]
                        },
                        "paymentStatus": {
                          "type": "string",
                          "enum": [
                            "unpaid",
                            "partial",
                            "paid"
                          ]
                        },
                        "documentNumber": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "documentDate": {
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "dueDate": {
                          "nullable": true,
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "registrationDate": {
                          "nullable": true,
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "currency": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "netTotal": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "vatTotal": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "grossTotal": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "paidAmount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "journalTransactionId": {
                          "nullable": true,
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "creditedInvoiceId": {
                          "nullable": true,
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "purchaseOrderId": {
                          "nullable": true,
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "operationTypeId": {
                          "nullable": true,
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "notes": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "intrastatTransportMode": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "intrastatDeliveryTerms": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "intrastatRegion": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "intrastatNatureOfTransaction": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "einvoiceNumber": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "documentRef": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "lines": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "itemId": {
                                "nullable": true,
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "description": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "unit": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "quantity": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "unitPriceExclVat": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "unitPriceInclVat": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "vatRatePercent": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "vatClassifierCode": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "costCenterId": {
                                "nullable": true,
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "projectId": {
                                "nullable": true,
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "accountCode": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "lineNet": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "lineVat": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "lineGross": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "sortOrder": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991,
                                "format": "int64"
                              }
                            },
                            "required": [
                              "id",
                              "itemId",
                              "description",
                              "unit",
                              "quantity",
                              "unitPriceExclVat",
                              "unitPriceInclVat",
                              "vatRatePercent",
                              "vatClassifierCode",
                              "costCenterId",
                              "projectId",
                              "accountCode",
                              "lineNet",
                              "lineVat",
                              "lineGross",
                              "sortOrder"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "id",
                        "partnerId",
                        "type",
                        "status",
                        "paymentStatus",
                        "documentNumber",
                        "documentDate",
                        "dueDate",
                        "registrationDate",
                        "currency",
                        "netTotal",
                        "vatTotal",
                        "grossTotal",
                        "paidAmount",
                        "journalTransactionId",
                        "creditedInvoiceId",
                        "purchaseOrderId",
                        "operationTypeId",
                        "notes",
                        "intrastatTransportMode",
                        "intrastatDeliveryTerms",
                        "intrastatRegion",
                        "intrastatNatureOfTransaction",
                        "einvoiceNumber",
                        "documentRef",
                        "createdAt",
                        "updatedAt",
                        "lines"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "capture",
                    "invoice"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "captureDocumentsConfirm",
        "x-fern-sdk-group-name": "capture",
        "x-fern-sdk-method-name": "documentsConfirm"
      }
    },
    "/v1/declarations/lt/intrastat/compute": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2016,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  },
                  "flow": {
                    "type": "string",
                    "enum": [
                      "arrivals",
                      "dispatches"
                    ]
                  },
                  "transactionNature": {
                    "default": "11",
                    "type": "string",
                    "pattern": "^\\d{2}$"
                  },
                  "deliveryTerms": {
                    "type": "string",
                    "pattern": "^[A-Z]{3}$"
                  },
                  "transportMode": {
                    "type": "string",
                    "enum": [
                      "1",
                      "2",
                      "3",
                      "4",
                      "5",
                      "7",
                      "8",
                      "9"
                    ]
                  },
                  "regionCode": {
                    "type": "string",
                    "pattern": "^[A-Z]$"
                  },
                  "statisticalValueRequired": {
                    "type": "boolean"
                  },
                  "preparationTimeHours": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 99,
                    "format": "int64"
                  },
                  "preparationTimeMinutes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 59,
                    "format": "int64"
                  },
                  "persist": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "year",
                  "month",
                  "flow"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "flow": {
                      "type": "string",
                      "enum": [
                        "arrivals",
                        "dispatches"
                      ]
                    },
                    "referencePeriod": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodStart": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodEnd": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "itemNumber": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "cnCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "transactionNature": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "deliveryTerms": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "transportMode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "regionCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "country": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "originCountry": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "netMassKg": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "supplementaryUnit": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "supplementaryQty": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoicedValue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "statisticalValue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "itemNumber",
                          "cnCode",
                          "description",
                          "transactionNature",
                          "deliveryTerms",
                          "transportMode",
                          "regionCode",
                          "country",
                          "originCountry",
                          "partnerVat",
                          "netMassKg",
                          "supplementaryUnit",
                          "supplementaryQty",
                          "invoicedValue",
                          "statisticalValue"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "invoicedValue": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "statisticalValue": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "netMassKg": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "lines": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "invoicedValue",
                        "statisticalValue",
                        "netMassKg",
                        "lines"
                      ],
                      "additionalProperties": false
                    },
                    "counts": {
                      "type": "object",
                      "properties": {
                        "invoices": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "linesIncluded": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "linesSkipped": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "invoices",
                        "linesIncluded",
                        "linesSkipped"
                      ],
                      "additionalProperties": false
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "flow",
                    "referencePeriod",
                    "periodStart",
                    "periodEnd",
                    "fileName",
                    "fileId",
                    "rows",
                    "totals",
                    "counts",
                    "warnings",
                    "notes",
                    "xml"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsLtIntrastatCompute",
        "summary": "Declarations lt intrastat compute",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "ltIntrastatCompute"
      }
    },
    "/v1/declarations/lt/ivaz/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "waybillIds": {
                    "minItems": 1,
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "persist": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "waybillIds"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "counts": {
                      "type": "object",
                      "properties": {
                        "documents": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "documents"
                      ],
                      "additionalProperties": false
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "fileName",
                    "fileId",
                    "counts",
                    "warnings",
                    "notes",
                    "xml"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsLtIvazGenerate",
        "summary": "Declarations lt ivaz generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "ltIvazGenerate"
      }
    },
    "/v1/declarations/lt/intrastat/obligation": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2016,
                    "maximum": 2100,
                    "format": "int64"
                  }
                },
                "required": [
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "isVatPayer": {
                      "type": "boolean"
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "thresholds": {
                      "type": "object",
                      "properties": {
                        "arrivalsReporting": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dispatchesReporting": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "arrivalsStatistical": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dispatchesStatistical": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "arrivalsReporting",
                        "dispatchesReporting",
                        "arrivalsStatistical",
                        "dispatchesStatistical"
                      ],
                      "additionalProperties": false
                    },
                    "arrivals": {
                      "type": "object",
                      "properties": {
                        "previousYearValue": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "obligatedFromMonth": {
                          "nullable": true,
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "statisticalValueRequired": {
                          "type": "boolean"
                        },
                        "monthly": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "month": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991,
                                "format": "int64"
                              },
                              "value": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "cumulative": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "month",
                              "value",
                              "cumulative"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "previousYearValue",
                        "obligatedFromMonth",
                        "statisticalValueRequired",
                        "monthly"
                      ],
                      "additionalProperties": false
                    },
                    "dispatches": {
                      "type": "object",
                      "properties": {
                        "previousYearValue": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "obligatedFromMonth": {
                          "nullable": true,
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "statisticalValueRequired": {
                          "type": "boolean"
                        },
                        "monthly": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "month": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991,
                                "format": "int64"
                              },
                              "value": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "cumulative": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "month",
                              "value",
                              "cumulative"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "previousYearValue",
                        "obligatedFromMonth",
                        "statisticalValueRequired",
                        "monthly"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "year",
                    "isVatPayer",
                    "notes",
                    "thresholds",
                    "arrivals",
                    "dispatches"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsLtIntrastatObligation",
        "summary": "Declarations lt intrastat obligation",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "ltIntrastatObligation"
      }
    },
    "/v1/declarations/lt/isaf/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2016,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  },
                  "dataType": {
                    "default": "F",
                    "type": "string",
                    "enum": [
                      "F",
                      "S",
                      "P"
                    ]
                  }
                },
                "required": [
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodStart": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodEnd": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "counts": {
                      "type": "object",
                      "properties": {
                        "salesInvoices": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "purchaseInvoices": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "customers": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "suppliers": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "salesInvoices",
                        "purchaseInvoices",
                        "customers",
                        "suppliers"
                      ],
                      "additionalProperties": false
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "fileName",
                    "periodStart",
                    "periodEnd",
                    "counts",
                    "warnings",
                    "xml"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsLtIsafGenerate",
        "summary": "Declarations lt isaf generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "ltIsafGenerate"
      }
    },
    "/v1/declarations/lt/fr0600/compute": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2016,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  },
                  "months": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  },
                  "deductionPercent": {
                    "default": 100,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100,
                    "format": "int64"
                  }
                },
                "required": [
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "periodStart": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodEnd": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "deductionPercent": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "field": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "label": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "value": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "field",
                          "label",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "breakdown": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "direction": {
                            "type": "string",
                            "enum": [
                              "sales",
                              "purchases"
                            ]
                          },
                          "taxCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "net": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "taxableFields": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "vatFields": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          }
                        },
                        "required": [
                          "direction",
                          "taxCode",
                          "net",
                          "vat",
                          "taxableFields",
                          "vatFields"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "counts": {
                      "type": "object",
                      "properties": {
                        "salesInvoices": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "purchaseInvoices": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "salesInvoices",
                        "purchaseInvoices"
                      ],
                      "additionalProperties": false
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "periodStart",
                    "periodEnd",
                    "deductionPercent",
                    "fields",
                    "breakdown",
                    "counts",
                    "warnings",
                    "notes"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsLtFr0600Compute",
        "summary": "Declarations lt fr0600 compute",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "ltFr0600Compute"
      }
    },
    "/v1/declarations/lt/gpm313/compute": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2018,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  },
                  "payoutTiming": {
                    "default": "next-month",
                    "type": "string",
                    "enum": [
                      "same-month",
                      "next-month"
                    ]
                  },
                  "paymentDay": {
                    "default": 10,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 31,
                    "format": "int64"
                  }
                },
                "required": [
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "declarationYear": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "declarationMonth": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "runPeriod": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "year": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "month": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "year",
                        "month"
                      ],
                      "additionalProperties": false
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "field": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "label": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "value": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "field",
                          "label",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "declarationYear",
                    "declarationMonth",
                    "runPeriod",
                    "fields",
                    "warnings",
                    "notes"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsLtGpm313Compute",
        "summary": "Declarations lt gpm313 compute",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "ltGpm313Compute"
      }
    },
    "/v1/declarations/lt/sam/compute": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2018,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  }
                },
                "required": [
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "month": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "insuredCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "insuredIncomeTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contributionsTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "persons": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "employeeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "personalCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "socialInsuranceNo": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "firstName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lastName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "insuredIncome": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "contributions": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "tariffPercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "employeeId",
                          "personalCode",
                          "socialInsuranceNo",
                          "firstName",
                          "lastName",
                          "insuredIncome",
                          "contributions",
                          "tariffPercent"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "year",
                    "month",
                    "insuredCount",
                    "insuredIncomeTotal",
                    "contributionsTotal",
                    "persons",
                    "warnings",
                    "notes"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsLtSamCompute",
        "summary": "Declarations lt sam compute",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "ltSamCompute"
      }
    },
    "/v1/declarations/lt/sd/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "1-SD",
                      "2-SD"
                    ]
                  },
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "type",
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "1-SD",
                        "2-SD"
                      ]
                    },
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "employeeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "contractId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "contractNo": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "personalCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "socialInsuranceNo": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "firstName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lastName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "professionCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "endReason": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "finalInsuredIncome": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "finalContributions": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "employeeId",
                          "contractId",
                          "contractNo",
                          "personalCode",
                          "socialInsuranceNo",
                          "firstName",
                          "lastName",
                          "date",
                          "professionCode",
                          "endReason",
                          "finalInsuredIncome",
                          "finalContributions"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "type",
                    "fromDate",
                    "toDate",
                    "rows",
                    "warnings",
                    "notes"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsLtSdGenerate",
        "summary": "Declarations lt sd generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "ltSdGenerate"
      }
    },
    "/v1/declarations/lt/saft/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "dataType": {
                    "default": "F",
                    "type": "string",
                    "enum": [
                      "F",
                      "GL",
                      "SI",
                      "PI",
                      "PA",
                      "MG",
                      "AS"
                    ]
                  },
                  "persist": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodStart": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodEnd": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "counts": {
                      "type": "object",
                      "properties": {
                        "accounts": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "customers": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "suppliers": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "glTransactions": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "salesInvoices": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "purchaseInvoices": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "payments": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "stockMovements": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "assetTransactions": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "accounts",
                        "customers",
                        "suppliers",
                        "glTransactions",
                        "salesInvoices",
                        "purchaseInvoices",
                        "payments",
                        "stockMovements",
                        "assetTransactions"
                      ],
                      "additionalProperties": false
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "fileName",
                    "fileId",
                    "periodStart",
                    "periodEnd",
                    "counts",
                    "warnings",
                    "xml"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsLtSaftGenerate",
        "summary": "Declarations lt saft generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "ltSaftGenerate"
      }
    },
    "/v1/declarations/lt/ivaz/amend": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "waybillIds": {
                    "minItems": 1,
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "persist": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "waybillIds"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "counts": {
                      "type": "object",
                      "properties": {
                        "documents": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "documents"
                      ],
                      "additionalProperties": false
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "fileName",
                    "fileId",
                    "counts",
                    "warnings",
                    "notes",
                    "xml"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsLtIvazAmend",
        "summary": "Declarations lt ivaz amend",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "ltIvazAmend"
      }
    },
    "/v1/declarations/lt/ivaz/cancel": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "entries": {
                    "minItems": 1,
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "waybillId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "reason": {
                          "type": "string",
                          "enum": [
                            "1",
                            "2",
                            "3",
                            "4",
                            "5",
                            "6"
                          ]
                        },
                        "additionalInfo": {
                          "type": "string",
                          "maxLength": 256,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "waybillId",
                        "reason"
                      ]
                    }
                  },
                  "persist": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "entries"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "counts": {
                      "type": "object",
                      "properties": {
                        "documents": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "documents"
                      ],
                      "additionalProperties": false
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "fileName",
                    "fileId",
                    "counts",
                    "warnings",
                    "notes",
                    "xml"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsLtIvazCancel",
        "summary": "Declarations lt ivaz cancel",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "ltIvazCancel"
      }
    },
    "/v1/declarations/lt/fr0564/compute": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2016,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  }
                },
                "required": [
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "month": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "periodStart": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodEnd": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "registrationNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "companyName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "vatCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "countryCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "goods": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "triangular": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "services": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "vatCode",
                          "partnerName",
                          "countryCode",
                          "goods",
                          "triangular",
                          "services"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "goods": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "triangular": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "services": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "rows": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "goods",
                        "triangular",
                        "services",
                        "rows"
                      ],
                      "additionalProperties": false
                    },
                    "counts": {
                      "type": "object",
                      "properties": {
                        "salesInvoices": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "salesInvoices"
                      ],
                      "additionalProperties": false
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "year",
                    "month",
                    "periodStart",
                    "periodEnd",
                    "registrationNumber",
                    "vatCode",
                    "companyName",
                    "rows",
                    "totals",
                    "counts",
                    "warnings",
                    "notes",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsLtFr0564Compute",
        "summary": "Declarations lt fr0564 compute",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "ltFr0564Compute"
      }
    },
    "/v1/declarations/lt/gpm312/compute": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2018,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "payoutTiming": {
                    "default": "next-month",
                    "type": "string",
                    "enum": [
                      "same-month",
                      "next-month"
                    ]
                  }
                },
                "required": [
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "payoutTiming": {
                      "type": "string",
                      "enum": [
                        "same-month",
                        "next-month"
                      ]
                    },
                    "payoutFrom": {
                      "type": "object",
                      "properties": {
                        "year": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "month": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "year",
                        "month"
                      ],
                      "additionalProperties": false
                    },
                    "payoutTo": {
                      "type": "object",
                      "properties": {
                        "year": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "month": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "year",
                        "month"
                      ],
                      "additionalProperties": false
                    },
                    "registrationNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "companyName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "employeeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "personalCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "firstName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lastName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "paymentCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "paidAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "gpmWithheld": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "employeeId",
                          "personalCode",
                          "firstName",
                          "lastName",
                          "paymentCode",
                          "paidAmount",
                          "gpmWithheld"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "paidAmount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "gpmWithheld": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "persons": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "paidAmount",
                        "gpmWithheld",
                        "persons"
                      ],
                      "additionalProperties": false
                    },
                    "runsFound": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "year",
                    "payoutTiming",
                    "payoutFrom",
                    "payoutTo",
                    "registrationNumber",
                    "companyName",
                    "rows",
                    "totals",
                    "runsFound",
                    "warnings",
                    "notes",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsLtGpm312Compute",
        "summary": "Declarations lt gpm312 compute",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "ltGpm312Compute"
      }
    },
    "/v1/declarations/lt/pln204/compute": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2016,
                    "maximum": 2100,
                    "format": "int64"
                  }
                },
                "required": [
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "periodStart": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodEnd": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "variant": {
                      "type": "string",
                      "enum": [
                        "PLN204",
                        "PLN204A"
                      ]
                    },
                    "registrationNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "companyName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "ratePercent": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rateCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "smallEntity": {
                      "type": "boolean"
                    },
                    "criteria": {
                      "type": "object",
                      "properties": {
                        "netTurnover": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "avgEmployees": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "netTurnover",
                        "avgEmployees"
                      ],
                      "additionalProperties": false
                    },
                    "totalIncome": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "boxes": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    },
                    "annexS": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "code",
                          "amount",
                          "description"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "annexZ": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "code",
                          "amount",
                          "description"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "label": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "value": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "key",
                          "label",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "year",
                    "periodStart",
                    "periodEnd",
                    "variant",
                    "registrationNumber",
                    "companyName",
                    "ratePercent",
                    "rateCode",
                    "smallEntity",
                    "criteria",
                    "totalIncome",
                    "boxes",
                    "annexS",
                    "annexZ",
                    "lines",
                    "warnings",
                    "notes",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsLtPln204Compute",
        "summary": "Declarations lt pln204 compute",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "ltPln204Compute"
      }
    },
    "/v1/declarations/eu/oss/compute": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2021,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "quarter": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 4,
                    "format": "int64"
                  }
                },
                "required": [
                  "year",
                  "quarter"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "periodYear": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "memberStateOfIdentification": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "countryCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "rateType": {
                            "type": "string",
                            "enum": [
                              "STANDARD",
                              "REDUCED"
                            ]
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "taxableAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "countryCode",
                          "rateType",
                          "vatRatePercent",
                          "taxableAmount",
                          "vatAmount",
                          "documents"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "taxableAmount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "vatAmount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "taxableAmount",
                        "vatAmount"
                      ],
                      "additionalProperties": false
                    },
                    "corrections": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "countryCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "periodYear": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "periodQuarter": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "periodMonth": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "taxableAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "countryCode",
                          "periodYear",
                          "periodQuarter",
                          "periodMonth",
                          "taxableAmount",
                          "vatAmount",
                          "documents"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "correctionsTotal": {
                      "type": "object",
                      "properties": {
                        "taxableAmount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "vatAmount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "taxableAmount",
                        "vatAmount"
                      ],
                      "additionalProperties": false
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "periodQuarter": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    }
                  },
                  "required": [
                    "periodYear",
                    "fromDate",
                    "toDate",
                    "memberStateOfIdentification",
                    "rows",
                    "totals",
                    "corrections",
                    "correctionsTotal",
                    "warnings",
                    "periodQuarter"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsEuOssCompute",
        "summary": "Declarations eu oss compute",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "euOssCompute"
      }
    },
    "/v1/declarations/eu/ioss/compute": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2021,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  }
                },
                "required": [
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "periodYear": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "memberStateOfIdentification": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "countryCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "rateType": {
                            "type": "string",
                            "enum": [
                              "STANDARD",
                              "REDUCED"
                            ]
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "taxableAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "countryCode",
                          "rateType",
                          "vatRatePercent",
                          "taxableAmount",
                          "vatAmount",
                          "documents"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "taxableAmount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "vatAmount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "taxableAmount",
                        "vatAmount"
                      ],
                      "additionalProperties": false
                    },
                    "corrections": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "countryCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "periodYear": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "periodQuarter": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "periodMonth": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "taxableAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "countryCode",
                          "periodYear",
                          "periodQuarter",
                          "periodMonth",
                          "taxableAmount",
                          "vatAmount",
                          "documents"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "correctionsTotal": {
                      "type": "object",
                      "properties": {
                        "taxableAmount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "vatAmount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "taxableAmount",
                        "vatAmount"
                      ],
                      "additionalProperties": false
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "periodMonth": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    }
                  },
                  "required": [
                    "periodYear",
                    "fromDate",
                    "toDate",
                    "memberStateOfIdentification",
                    "rows",
                    "totals",
                    "corrections",
                    "correctionsTotal",
                    "warnings",
                    "periodMonth"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsEuIossCompute",
        "summary": "Declarations eu ioss compute",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "euIossCompute"
      }
    },
    "/v1/declarations/eu/distance-sales-threshold/get": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "thresholdEur": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "homeCountryCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currentYear": {
                      "type": "object",
                      "properties": {
                        "year": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "totalAmount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "documents": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "year",
                        "totalAmount",
                        "documents"
                      ],
                      "additionalProperties": false
                    },
                    "precedingYear": {
                      "type": "object",
                      "properties": {
                        "year": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "totalAmount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "documents": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "year",
                        "totalAmount",
                        "documents"
                      ],
                      "additionalProperties": false
                    },
                    "belowThreshold": {
                      "type": "boolean"
                    },
                    "headroomAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "thresholdEur",
                    "homeCountryCode",
                    "currentYear",
                    "precedingYear",
                    "belowThreshold",
                    "headroomAmount",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsEuDistanceSalesThresholdGet",
        "summary": "Declarations eu distance sales threshold get",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "euDistanceSalesThresholdGet"
      }
    },
    "/v1/declarations/eu/union-turnover/get": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "capEur": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isVatPayer": {
                      "type": "boolean"
                    },
                    "currentYear": {
                      "type": "object",
                      "properties": {
                        "year": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "amount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "documents": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "year",
                        "amount",
                        "documents"
                      ],
                      "additionalProperties": false
                    },
                    "previousYear": {
                      "type": "object",
                      "properties": {
                        "year": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "amount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "documents": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "year",
                        "amount",
                        "documents"
                      ],
                      "additionalProperties": false
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "below",
                        "approaching",
                        "exceeded",
                        "not_applicable"
                      ]
                    },
                    "headroomAmount": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "capEur",
                    "currency",
                    "isVatPayer",
                    "currentYear",
                    "previousYear",
                    "status",
                    "headroomAmount",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsEuUnionTurnoverGet",
        "summary": "Declarations eu union turnover get",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "euUnionTurnoverGet"
      }
    },
    "/v1/declarations/eu/sme-cross-border-report/compute": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2025,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "quarter": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 4,
                    "format": "int64"
                  }
                },
                "required": [
                  "year",
                  "quarter"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "quarter": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "countryCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "countryCode",
                          "amount",
                          "documents"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "total": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "year",
                    "quarter",
                    "fromDate",
                    "toDate",
                    "currency",
                    "rows",
                    "total",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsEuSmeCrossBorderReportCompute",
        "summary": "Declarations eu sme cross border report compute",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "euSmeCrossBorderReportCompute"
      }
    },
    "/v1/declarations/eu/sme-thresholds/list": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "nationalCapEur": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "unionTurnoverCapEur": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "thresholds": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "countryCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "nationalThreshold": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sectors": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "label": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "amount": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "note": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "label",
                                "amount"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "intraEuAcquisitionsTrigger": {
                            "type": "object",
                            "properties": {
                              "amount": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "currency": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "note": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "amount",
                              "currency",
                              "note"
                            ],
                            "additionalProperties": false
                          },
                          "note": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "source": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "countryCode",
                          "currency",
                          "nationalThreshold",
                          "source"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "nationalCapEur",
                    "unionTurnoverCapEur",
                    "thresholds"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsEuSmeThresholdsList",
        "summary": "Declarations eu sme thresholds list",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "euSmeThresholdsList"
      }
    },
    "/v1/declarations/eu/sme-threshold/get": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "countryCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isVatPayer": {
                      "type": "boolean"
                    },
                    "baseCurrency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "threshold": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "currency": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "nationalThreshold": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "sectors": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "label": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "amount": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "note": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "label",
                              "amount"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "note": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "source": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "currency",
                        "nationalThreshold",
                        "source"
                      ],
                      "additionalProperties": false
                    },
                    "turnover": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "currency": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "documents": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "amount",
                        "currency",
                        "documents"
                      ],
                      "additionalProperties": false
                    },
                    "precedingTurnover": {
                      "type": "object",
                      "properties": {
                        "year": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "amount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "documents": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "year",
                        "amount",
                        "documents"
                      ],
                      "additionalProperties": false
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "not_applicable",
                        "below",
                        "approaching",
                        "exceeded",
                        "unknown"
                      ]
                    },
                    "headroomAmount": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "intraEu": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "trigger": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "currency": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "acquisitionsFromMemberStates": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "servicesToMemberStates": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "total": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "below",
                            "approaching",
                            "exceeded"
                          ]
                        },
                        "note": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "trigger",
                        "currency",
                        "acquisitionsFromMemberStates",
                        "servicesToMemberStates",
                        "total",
                        "status",
                        "note"
                      ],
                      "additionalProperties": false
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "countryCode",
                    "isVatPayer",
                    "baseCurrency",
                    "year",
                    "threshold",
                    "turnover",
                    "precedingTurnover",
                    "status",
                    "headroomAmount",
                    "intraEu",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsEuSmeThresholdGet",
        "summary": "Declarations eu sme threshold get",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "euSmeThresholdGet"
      }
    },
    "/v1/declarations/eu/vat-return/packs/list": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "packs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "countryCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "formKey": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "formName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "frequency": {
                            "type": "string",
                            "enum": [
                              "monthly",
                              "quarterly",
                              "annual"
                            ]
                          },
                          "source": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "countryCode",
                          "formKey",
                          "formName",
                          "frequency",
                          "source"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "packs"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsEuVatReturnPacksList",
        "summary": "Declarations eu vat return packs list",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "euVatReturnPacksList"
      }
    },
    "/v1/declarations/eu/vat-return/compute": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "countryCode": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "year": {
                    "type": "integer",
                    "minimum": 2016,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  },
                  "months": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  }
                },
                "required": [
                  "countryCode",
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "countryCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "formKey": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "formName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "frequency": {
                      "type": "string",
                      "enum": [
                        "monthly",
                        "quarterly",
                        "annual"
                      ]
                    },
                    "periodStart": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodEnd": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "boxes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "label": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "code",
                          "label",
                          "amount"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "countryCode",
                    "formKey",
                    "formName",
                    "frequency",
                    "periodStart",
                    "periodEnd",
                    "boxes",
                    "warnings",
                    "notes",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsEuVatReturnCompute",
        "summary": "Declarations eu vat return compute",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "euVatReturnCompute"
      }
    },
    "/v1/declarations/pl/jpk-v7m/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Generate the Polish JPK_V7M(3) file (VAT declaration with evidence) for a month, per the MF schema in force since February 2026. Amounts must already be in PLN; rows are marked BFK until a KSeF integration supplies invoice numbers. Review the warnings before submitting via e-dokumenty.mf.gov.pl.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2026,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  },
                  "kodUrzedu": {
                    "type": "string",
                    "pattern": "^\\d{4}$"
                  },
                  "email": {
                    "type": "string",
                    "maxLength": 200,
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "celZlozenia": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 2,
                    "format": "int64"
                  }
                },
                "required": [
                  "year",
                  "month",
                  "kodUrzedu",
                  "email"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodStart": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodEnd": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "declaration": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "field": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "label": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "value": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "field",
                          "label",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "counts": {
                      "type": "object",
                      "properties": {
                        "salesRows": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "purchaseRows": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "salesRows",
                        "purchaseRows"
                      ],
                      "additionalProperties": false
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "fileName",
                    "xml",
                    "periodStart",
                    "periodEnd",
                    "declaration",
                    "counts",
                    "warnings",
                    "notes"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsPlJpkV7mGenerate",
        "summary": "Declarations pl jpk v7m generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "plJpkV7mGenerate"
      }
    },
    "/v1/declarations/pl/vat-ue/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Build the rows of the Polish recapitulative statement VAT-UE for a month: section C intra-Community supplies of goods, section D intra-Community acquisitions, section E services taxed where the customer is established. Amounts are full złoty per counterparty. The VAT-UE(5) file itself goes out from the EU sales list deadline in the calendar.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2016,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  }
                },
                "required": [
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "periodStart": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodEnd": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "nip": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "companyName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "section": {
                            "type": "string",
                            "enum": [
                              "C",
                              "D",
                              "E"
                            ]
                          },
                          "countryCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatNumber": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documents": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          }
                        },
                        "required": [
                          "section",
                          "countryCode",
                          "vatNumber",
                          "partnerName",
                          "amount",
                          "documents"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "totals": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "section": {
                            "type": "string",
                            "enum": [
                              "C",
                              "D",
                              "E"
                            ]
                          },
                          "counterparties": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "section",
                          "counterparties",
                          "amount"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "periodStart",
                    "periodEnd",
                    "nip",
                    "companyName",
                    "rows",
                    "totals",
                    "warnings",
                    "notes",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsPlVatUeGenerate",
        "summary": "Declarations pl vat ue generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "plVatUeGenerate"
      }
    },
    "/v1/declarations/pl/intrastat/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Build the rows of the Polish INTRASTAT declaration for a month, arrivals or dispatches, grouped by CN code, partner country, country of origin, partner VAT number, nature of transaction, transport and delivery terms. Values are whole złoty converted at the invoice rate; credit notes with goods lines are returns (code 21). Goods without a CN code are left out and named in the warnings. The IST message itself goes out from the Intrastat deadline in the calendar.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2016,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  },
                  "flow": {
                    "type": "string",
                    "enum": [
                      "arrivals",
                      "dispatches"
                    ]
                  },
                  "transactionNature": {
                    "type": "string",
                    "pattern": "^\\d{1,2}$"
                  }
                },
                "required": [
                  "year",
                  "month",
                  "flow"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "flow": {
                      "type": "string",
                      "enum": [
                        "arrivals",
                        "dispatches"
                      ]
                    },
                    "referencePeriod": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodStart": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodEnd": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "nip": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "companyName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "detailedThreshold": {
                      "type": "boolean"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "itemNumber": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "cnCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "countryCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "originCountry": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerVat": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "transactionNature": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "transportMode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "deliveryTerms": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "netMassKg": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "supplementaryUnit": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "supplementaryQty": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoicedValue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "statisticalValue": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "itemNumber",
                          "cnCode",
                          "description",
                          "countryCode",
                          "originCountry",
                          "partnerVat",
                          "transactionNature",
                          "transportMode",
                          "deliveryTerms",
                          "netMassKg",
                          "supplementaryUnit",
                          "supplementaryQty",
                          "invoicedValue",
                          "statisticalValue"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "invoicedValue": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "statisticalValue": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "netMassKg": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "lines": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "invoicedValue",
                        "statisticalValue",
                        "netMassKg",
                        "lines"
                      ],
                      "additionalProperties": false
                    },
                    "counts": {
                      "type": "object",
                      "properties": {
                        "invoices": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "linesIncluded": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "linesSkipped": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "returns": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "invoices",
                        "linesIncluded",
                        "linesSkipped",
                        "returns"
                      ],
                      "additionalProperties": false
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "flow",
                    "referencePeriod",
                    "periodStart",
                    "periodEnd",
                    "nip",
                    "companyName",
                    "detailedThreshold",
                    "rows",
                    "totals",
                    "counts",
                    "warnings",
                    "notes",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsPlIntrastatGenerate",
        "summary": "Declarations pl intrastat generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "plIntrastatGenerate"
      }
    },
    "/v1/declarations/pl/ksef/received/list": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "List the invoices KSeF holds for this company as the buyer, for a window of acquisition timestamps. Each row carries the KSeF number and, when the document number matches a registered purchase invoice, the invoice it belongs to.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  "to": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  "pageSize": {
                    "default": 100,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000,
                    "format": "int64"
                  },
                  "pageOffset": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000,
                    "format": "int64"
                  }
                },
                "required": [
                  "from",
                  "to"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ksefReferenceNumber": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoiceNumber": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "issuerNip": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "issueDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "acquisitionTimestamp": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "grossAmount": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "purchaseInvoiceId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "ksefReferenceNumber",
                          "invoiceNumber",
                          "issuerNip",
                          "issueDate",
                          "acquisitionTimestamp",
                          "grossAmount",
                          "purchaseInvoiceId"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsPlKsefReceivedList",
        "summary": "Declarations pl ksef received list",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "plKsefReceivedList"
      }
    },
    "/v1/declarations/pl/ksef/received/fetch": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Read one invoice out of KSeF by its national number. With a purchase invoice given, the KSeF number is written onto that invoice, which is what makes the purchase row of JPK_V7M carry NrKSeF instead of the BFK marker.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ksefNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "purchaseInvoiceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "ksefNumber"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ksefNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "attachedTo": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "ksefNumber",
                    "xml",
                    "attachedTo"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsPlKsefReceivedFetch",
        "summary": "Declarations pl ksef received fetch",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "plKsefReceivedFetch"
      }
    },
    "/v1/declarations/pl/ksef/receipt": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "The UPO for a KSeF session. KSeF issues one receipt per session rather than per invoice, so the session reference number from the send is what identifies it.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sessionReferenceNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80,
                    "pattern": "^[\\s\\S]*$"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "referenceNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "sent",
                        "accepted",
                        "rejected"
                      ]
                    },
                    "detail": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "invoiceCount": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "upoXml": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "referenceNumber",
                    "state",
                    "detail",
                    "invoiceCount",
                    "upoXml"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsPlKsefReceipt",
        "summary": "Declarations pl ksef receipt",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "plKsefReceipt"
      }
    },
    "/v1/declarations/tax-adjustments/list": {
      "post": {
        "summary": "Tax adjustments recorded for a tax year",
        "tags": [
          "declarations"
        ],
        "description": "The differences between the accounting result and the taxable profit: non-deductible expenses, income added to or left out of the tax base, extra deductible expenses, donations, losses carried forward, reliefs and tax credits. The annual corporate income tax return is built from them.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  }
                },
                "required": [
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "year": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "non_deductible",
                              "income_increase",
                              "non_taxable_income",
                              "excluded_income",
                              "deductible_adjustment",
                              "donation",
                              "loss_carried_forward",
                              "investment_relief",
                              "foreign_tax_credit",
                              "tax_reduction"
                            ]
                          },
                          "code": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "year",
                          "kind",
                          "code",
                          "amount",
                          "description"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsTaxAdjustmentsList",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "taxAdjustmentsList"
      }
    },
    "/v1/declarations/tax-adjustments/create": {
      "post": {
        "summary": "Record a tax adjustment for a tax year",
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "non_deductible",
                      "income_increase",
                      "non_taxable_income",
                      "excluded_income",
                      "deductible_adjustment",
                      "donation",
                      "loss_carried_forward",
                      "investment_relief",
                      "foreign_tax_credit",
                      "tax_reduction"
                    ]
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "amount": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "description": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "year",
                  "kind",
                  "amount",
                  "description"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "non_deductible",
                        "income_increase",
                        "non_taxable_income",
                        "excluded_income",
                        "deductible_adjustment",
                        "donation",
                        "loss_carried_forward",
                        "investment_relief",
                        "foreign_tax_credit",
                        "tax_reduction"
                      ]
                    },
                    "code": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "amount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "description": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "year",
                    "kind",
                    "code",
                    "amount",
                    "description"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsTaxAdjustmentsCreate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "taxAdjustmentsCreate"
      }
    },
    "/v1/declarations/tax-adjustments/update": {
      "post": {
        "summary": "Change a recorded tax adjustment",
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "non_deductible",
                      "income_increase",
                      "non_taxable_income",
                      "excluded_income",
                      "deductible_adjustment",
                      "donation",
                      "loss_carried_forward",
                      "investment_relief",
                      "foreign_tax_credit",
                      "tax_reduction"
                    ]
                  },
                  "code": {
                    "type": "string",
                    "maxLength": 40,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "amount": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "description": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "non_deductible",
                        "income_increase",
                        "non_taxable_income",
                        "excluded_income",
                        "deductible_adjustment",
                        "donation",
                        "loss_carried_forward",
                        "investment_relief",
                        "foreign_tax_credit",
                        "tax_reduction"
                      ]
                    },
                    "code": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "amount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "description": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "year",
                    "kind",
                    "code",
                    "amount",
                    "description"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsTaxAdjustmentsUpdate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "taxAdjustmentsUpdate"
      }
    },
    "/v1/declarations/tax-adjustments/delete": {
      "post": {
        "summary": "Remove a recorded tax adjustment",
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsTaxAdjustmentsDelete",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "taxAdjustmentsDelete"
      }
    },
    "/v1/declarations/tax-payments/list": {
      "post": {
        "summary": "Payments already made towards a tax of a year",
        "tags": [
          "declarations"
        ],
        "description": "What the company has paid the administration towards a tax before the return is filed: payments on account, tax withheld at source by others, a final settlement, and a refund received. Returns report these on their own lines, so the amount they ask for is the balance.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "tax": {
                    "type": "string",
                    "enum": [
                      "corporate_income_tax",
                      "payroll_withholding",
                      "vat",
                      "social_insurance",
                      "other"
                    ]
                  },
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  }
                },
                "required": [
                  "tax",
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "tax": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "year": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "month": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "advance",
                              "withholding",
                              "final",
                              "refund"
                            ]
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "paidOn": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "reference": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "tax",
                          "year",
                          "month",
                          "kind",
                          "amount",
                          "paidOn",
                          "reference",
                          "description"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsTaxPaymentsList",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "taxPaymentsList"
      }
    },
    "/v1/declarations/tax-payments/create": {
      "post": {
        "summary": "Record a payment made towards a tax",
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "tax": {
                    "type": "string",
                    "enum": [
                      "corporate_income_tax",
                      "payroll_withholding",
                      "vat",
                      "social_insurance",
                      "other"
                    ]
                  },
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "advance",
                      "withholding",
                      "final",
                      "refund"
                    ]
                  },
                  "amount": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "paidOn": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "reference": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "description": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "tax",
                  "year",
                  "kind",
                  "amount",
                  "paidOn",
                  "description"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "tax": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "month": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "advance",
                        "withholding",
                        "final",
                        "refund"
                      ]
                    },
                    "amount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "paidOn": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "reference": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "description": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "tax",
                    "year",
                    "month",
                    "kind",
                    "amount",
                    "paidOn",
                    "reference",
                    "description"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsTaxPaymentsCreate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "taxPaymentsCreate"
      }
    },
    "/v1/declarations/tax-payments/update": {
      "post": {
        "summary": "Change a recorded tax payment",
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "advance",
                      "withholding",
                      "final",
                      "refund"
                    ]
                  },
                  "amount": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "paidOn": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "reference": {
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "description": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "tax": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "month": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "advance",
                        "withholding",
                        "final",
                        "refund"
                      ]
                    },
                    "amount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "paidOn": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "reference": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "description": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "tax",
                    "year",
                    "month",
                    "kind",
                    "amount",
                    "paidOn",
                    "reference",
                    "description"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsTaxPaymentsUpdate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "taxPaymentsUpdate"
      }
    },
    "/v1/declarations/tax-payments/delete": {
      "post": {
        "summary": "Remove a recorded tax payment",
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsTaxPaymentsDelete",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "taxPaymentsDelete"
      }
    },
    "/v1/declarations/annual-accounts/get": {
      "post": {
        "summary": "Adoption and signing facts of the annual accounts of a year",
        "tags": [
          "declarations"
        ],
        "description": "Whether the general meeting adopted the annual accounts and on which date, the date the accounts were prepared, and which directors signed them. The annual accounts filed with the trade register are built from these facts.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  }
                },
                "required": [
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "approval": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "year": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "adopted": {
                          "type": "boolean"
                        },
                        "adoptionDate": {
                          "nullable": true,
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "dateOfPreparation": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "audited": {
                          "type": "boolean"
                        },
                        "auditReportQualified": {
                          "nullable": true,
                          "type": "boolean"
                        },
                        "auditorNotElected": {
                          "type": "boolean"
                        },
                        "notesText": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "managementReportText": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "auditorReportText": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "auditorReportDate": {
                          "nullable": true,
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "resultToReserves": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "resultToLossCompensation": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "resultToRemainder": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "signatures": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "directorName": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "directorType": {
                                "type": "string",
                                "enum": [
                                  "managing_current",
                                  "managing_former",
                                  "supervisory_current",
                                  "supervisory_former"
                                ]
                              },
                              "signed": {
                                "type": "boolean"
                              },
                              "signedOn": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "signedAt": {
                                "nullable": true,
                                "type": "string",
                                "format": "date-time",
                                "example": "2026-07-01T09:30:00.000Z"
                              },
                              "reasonNotSigned": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "id",
                              "directorName",
                              "directorType",
                              "signed",
                              "signedOn",
                              "signedAt",
                              "reasonNotSigned"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "distributions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "decidedOn": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "dividend",
                                  "interim_dividend",
                                  "other"
                                ]
                              },
                              "amount": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "description": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "id",
                              "decidedOn",
                              "kind",
                              "amount",
                              "description"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "attachments": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "full_report",
                                  "notes",
                                  "management_report",
                                  "auditor_statement",
                                  "appropriation_resolution",
                                  "approval_certificate",
                                  "general_data_sheet",
                                  "other"
                                ]
                              },
                              "name": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "fileId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "fileName": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "mimeType": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "sizeBytes": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991,
                                "format": "int64"
                              },
                              "storageKey": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "id",
                              "kind",
                              "name",
                              "fileId",
                              "fileName",
                              "mimeType",
                              "sizeBytes",
                              "storageKey"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "id",
                        "year",
                        "adopted",
                        "adoptionDate",
                        "dateOfPreparation",
                        "audited",
                        "auditReportQualified",
                        "auditorNotElected",
                        "notesText",
                        "managementReportText",
                        "auditorReportText",
                        "auditorReportDate",
                        "resultToReserves",
                        "resultToLossCompensation",
                        "resultToRemainder",
                        "signatures",
                        "distributions",
                        "attachments"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "approval"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsAnnualAccountsGet",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "annualAccountsGet"
      }
    },
    "/v1/declarations/annual-accounts/set": {
      "post": {
        "summary": "Record the adoption and preparation of the annual accounts of a year",
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "adopted": {
                    "type": "boolean"
                  },
                  "adoptionDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "dateOfPreparation": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "audited": {
                    "type": "boolean"
                  },
                  "auditReportQualified": {
                    "type": "boolean"
                  },
                  "auditorNotElected": {
                    "type": "boolean"
                  },
                  "notesText": {
                    "type": "string",
                    "maxLength": 400000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "managementReportText": {
                    "type": "string",
                    "maxLength": 400000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "auditorReportText": {
                    "type": "string",
                    "maxLength": 400000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "auditorReportDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "resultToReserves": {
                    "type": "string",
                    "pattern": "^\\d{1,17}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "resultToLossCompensation": {
                    "type": "string",
                    "pattern": "^\\d{1,17}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "resultToRemainder": {
                    "type": "string",
                    "pattern": "^\\d{1,17}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  }
                },
                "required": [
                  "year",
                  "adopted",
                  "dateOfPreparation"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "adopted": {
                      "type": "boolean"
                    },
                    "adoptionDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "dateOfPreparation": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "audited": {
                      "type": "boolean"
                    },
                    "auditReportQualified": {
                      "nullable": true,
                      "type": "boolean"
                    },
                    "auditorNotElected": {
                      "type": "boolean"
                    },
                    "notesText": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "managementReportText": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "auditorReportText": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "auditorReportDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "resultToReserves": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "resultToLossCompensation": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "resultToRemainder": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "signatures": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "directorName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "directorType": {
                            "type": "string",
                            "enum": [
                              "managing_current",
                              "managing_former",
                              "supervisory_current",
                              "supervisory_former"
                            ]
                          },
                          "signed": {
                            "type": "boolean"
                          },
                          "signedOn": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "signedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "reasonNotSigned": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "directorName",
                          "directorType",
                          "signed",
                          "signedOn",
                          "signedAt",
                          "reasonNotSigned"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "distributions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "decidedOn": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "dividend",
                              "interim_dividend",
                              "other"
                            ]
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "decidedOn",
                          "kind",
                          "amount",
                          "description"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "attachments": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "full_report",
                              "notes",
                              "management_report",
                              "auditor_statement",
                              "appropriation_resolution",
                              "approval_certificate",
                              "general_data_sheet",
                              "other"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "mimeType": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sizeBytes": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "storageKey": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "kind",
                          "name",
                          "fileId",
                          "fileName",
                          "mimeType",
                          "sizeBytes",
                          "storageKey"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "year",
                    "adopted",
                    "adoptionDate",
                    "dateOfPreparation",
                    "audited",
                    "auditReportQualified",
                    "auditorNotElected",
                    "notesText",
                    "managementReportText",
                    "auditorReportText",
                    "auditorReportDate",
                    "resultToReserves",
                    "resultToLossCompensation",
                    "resultToRemainder",
                    "signatures",
                    "distributions",
                    "attachments"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsAnnualAccountsSet",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "annualAccountsSet"
      }
    },
    "/v1/declarations/annual-accounts/signatures/create": {
      "post": {
        "summary": "Record whether a director signed the annual accounts of a year",
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "directorName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "directorType": {
                    "type": "string",
                    "enum": [
                      "managing_current",
                      "managing_former",
                      "supervisory_current",
                      "supervisory_former"
                    ]
                  },
                  "signed": {
                    "type": "boolean"
                  },
                  "signedOn": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "signedAt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000,
                    "format": "date-time",
                    "example": "2026-07-01T09:30:00.000Z"
                  },
                  "reasonNotSigned": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "year",
                  "directorName",
                  "directorType",
                  "signed"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "directorName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "directorType": {
                      "type": "string",
                      "enum": [
                        "managing_current",
                        "managing_former",
                        "supervisory_current",
                        "supervisory_former"
                      ]
                    },
                    "signed": {
                      "type": "boolean"
                    },
                    "signedOn": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "signedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "reasonNotSigned": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "directorName",
                    "directorType",
                    "signed",
                    "signedOn",
                    "signedAt",
                    "reasonNotSigned"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsAnnualAccountsSignaturesCreate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "annualAccountsSignaturesCreate"
      }
    },
    "/v1/declarations/annual-accounts/signatures/update": {
      "post": {
        "summary": "Change a recorded director signature",
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "directorName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "directorType": {
                    "type": "string",
                    "enum": [
                      "managing_current",
                      "managing_former",
                      "supervisory_current",
                      "supervisory_former"
                    ]
                  },
                  "signed": {
                    "type": "boolean"
                  },
                  "signedOn": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "signedAt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000,
                    "format": "date-time",
                    "example": "2026-07-01T09:30:00.000Z"
                  },
                  "reasonNotSigned": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id",
                  "directorName",
                  "directorType",
                  "signed"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "directorName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "directorType": {
                      "type": "string",
                      "enum": [
                        "managing_current",
                        "managing_former",
                        "supervisory_current",
                        "supervisory_former"
                      ]
                    },
                    "signed": {
                      "type": "boolean"
                    },
                    "signedOn": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "signedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "reasonNotSigned": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "directorName",
                    "directorType",
                    "signed",
                    "signedOn",
                    "signedAt",
                    "reasonNotSigned"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsAnnualAccountsSignaturesUpdate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "annualAccountsSignaturesUpdate"
      }
    },
    "/v1/declarations/annual-accounts/signatures/delete": {
      "post": {
        "summary": "Remove a recorded director signature",
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsAnnualAccountsSignaturesDelete",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "annualAccountsSignaturesDelete"
      }
    },
    "/v1/declarations/annual-accounts/distributions/create": {
      "post": {
        "summary": "Record a decision to distribute profit (a dividend, an interim dividend or a payment treated as one)",
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "decidedOn": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "dividend",
                      "interim_dividend",
                      "other"
                    ]
                  },
                  "amount": {
                    "type": "string",
                    "pattern": "^\\d{1,17}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 1000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "year",
                  "decidedOn",
                  "kind",
                  "amount"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "decidedOn": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "dividend",
                        "interim_dividend",
                        "other"
                      ]
                    },
                    "amount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "description": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "decidedOn",
                    "kind",
                    "amount",
                    "description"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsAnnualAccountsDistributionsCreate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "annualAccountsDistributionsCreate"
      }
    },
    "/v1/declarations/annual-accounts/distributions/update": {
      "post": {
        "summary": "Change a recorded profit distribution",
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "decidedOn": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "dividend",
                      "interim_dividend",
                      "other"
                    ]
                  },
                  "amount": {
                    "type": "string",
                    "pattern": "^\\d{1,17}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 1000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id",
                  "decidedOn",
                  "kind",
                  "amount"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "decidedOn": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "dividend",
                        "interim_dividend",
                        "other"
                      ]
                    },
                    "amount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "description": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "decidedOn",
                    "kind",
                    "amount",
                    "description"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsAnnualAccountsDistributionsUpdate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "annualAccountsDistributionsUpdate"
      }
    },
    "/v1/declarations/annual-accounts/distributions/delete": {
      "post": {
        "summary": "Remove a recorded profit distribution",
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsAnnualAccountsDistributionsDelete",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "annualAccountsDistributionsDelete"
      }
    },
    "/v1/declarations/annual-accounts/attachments/add": {
      "post": {
        "summary": "Attach an uploaded document to the annual accounts of a year",
        "tags": [
          "declarations"
        ],
        "description": "Links a file uploaded through files/upload (its storageKey) to the annual accounts of the year as the notes, the management report, the auditor statement, the profit appropriation resolution, the approval certificate, the general data sheet, the full report as a pdf, or another document. Deposits that must carry these documents take them from here.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "full_report",
                      "notes",
                      "management_report",
                      "auditor_statement",
                      "appropriation_resolution",
                      "approval_certificate",
                      "general_data_sheet",
                      "other"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "ref": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "year",
                  "kind",
                  "ref"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "full_report",
                        "notes",
                        "management_report",
                        "auditor_statement",
                        "appropriation_resolution",
                        "approval_certificate",
                        "general_data_sheet",
                        "other"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "mimeType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sizeBytes": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "storageKey": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "kind",
                    "name",
                    "fileId",
                    "fileName",
                    "mimeType",
                    "sizeBytes",
                    "storageKey"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsAnnualAccountsAttachmentsAdd",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "annualAccountsAttachmentsAdd"
      }
    },
    "/v1/declarations/annual-accounts/attachments/delete": {
      "post": {
        "summary": "Remove a document attached to the annual accounts and delete its file",
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsAnnualAccountsAttachmentsDelete",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "annualAccountsAttachmentsDelete"
      }
    },
    "/v1/declarations/cy/td4/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Compute the company income tax return TD4 of a tax year from the ledger and the recorded tax adjustments: the accounting profit, the add-backs, deductions, capital allowances and losses brought forward, the chargeable income, the corporation tax at the rate of the year and the double tax relief, as the fields the company keys into TAXISnet or Tax For All. The Tax Department publishes no upload layout for the TD4; the XML is a working file.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  }
                },
                "required": [
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "periodStart": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodEnd": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "taxIdentificationCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "field": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "label": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "value": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "field",
                          "label",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "year",
                    "periodStart",
                    "periodEnd",
                    "taxIdentificationCode",
                    "fileName",
                    "xml",
                    "fields",
                    "warnings",
                    "notes",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsCyTd4Generate",
        "summary": "Declarations cy td4 generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "cyTd4Generate"
      }
    },
    "/v1/declarations/cy/he32/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Build the annual return HE32 of a year: the figures the Registrar’s e-filing screens ask for (company number, registered office, made-up-to date, share capital, register of members, directors and secretary, annual general meeting date, the accounts summary), the working file, and the printed form HE32(I) filled in as a PDF for signing and for keying into the Registrar’s system, which takes the return only through its own screens.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  }
                },
                "required": [
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "madeUpTo": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "registrarNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "companyName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "pdfFileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "pdf": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "formSource": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "field": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "label": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "value": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "field",
                          "label",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "members": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "identifier": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "shares": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "nominalValue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "shareClass": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name",
                          "identifier",
                          "shares",
                          "nominalValue",
                          "shareClass"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "officers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "position": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "identifier": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "position",
                          "name",
                          "identifier"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "year",
                    "madeUpTo",
                    "registrarNumber",
                    "companyName",
                    "fileName",
                    "xml",
                    "pdfFileName",
                    "pdf",
                    "formSource",
                    "fields",
                    "members",
                    "officers",
                    "warnings",
                    "notes",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsCyHe32Generate",
        "summary": "Declarations cy he32 generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "cyHe32Generate"
      }
    },
    "/v1/declarations/de/returns/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Build one of the German returns that ELSTER accepts only through a licensed ERiC transmission (E-Bilanz, Körperschaftsteuer, Gewerbesteuer with its Zerlegungserklärung, annual VAT return, Lohnsteuer-Anmeldung, Lohnsteuerbescheinigung) for the company to send through its own ELSTER-capable program. The period is the year, or YYYY-MM for the monthly Lohnsteuer-Anmeldung.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ruleKey": {
                    "type": "string",
                    "enum": [
                      "de-e-bilanz",
                      "de-cit-return",
                      "de-trade-tax",
                      "de-trade-tax-apportionment",
                      "de-annual-vat-return",
                      "de-payroll-withholding",
                      "de-payroll-statements"
                    ]
                  },
                  "period": {
                    "type": "string",
                    "minLength": 4,
                    "maxLength": 7,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "ruleKey",
                  "period"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ruleKey": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "period": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "mimeType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "variant": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "content": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "ruleKey",
                    "period",
                    "fileName",
                    "mimeType",
                    "variant",
                    "content",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsDeReturnsGenerate",
        "summary": "Declarations de returns generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "deReturnsGenerate"
      }
    },
    "/v1/declarations/de/return-facts/get": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "The facts of one year that the German annual returns (Körperschaftsteuer, Gewerbesteuer, Umsatzsteuererklärung) need and the ledger does not hold: changes of shareholders, contracts with shareholders, the tax contribution account, loss carry-back, the donation carry-forward, the business premises with the municipalities for the apportionment of the trade tax, the land values or property tax and the participations for the trade tax additions and reductions, the foreign income per country for the Anlage AESt, the date of leaving the small-business scheme and the Anlage UN answers of a company seated abroad. A key that is absent has not been answered.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  }
                },
                "required": [
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "facts": {
                      "type": "object",
                      "properties": {
                        "changedShareholderIds": {
                          "maxItems": 500,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "shareholderContracts": {
                          "type": "boolean"
                        },
                        "contracts": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "date": {
                                "type": "string",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                                "format": "date",
                                "example": "2026-07-01"
                              },
                              "partner": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "amount": {
                                "type": "string",
                                "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                                "example": "-121.00"
                              }
                            },
                            "required": [
                              "kind",
                              "date",
                              "partner",
                              "amount"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "harmfulShareAcquisition": {
                          "type": "boolean"
                        },
                        "coronaAid": {
                          "type": "string",
                          "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                          "example": "-121.00"
                        },
                        "lossCarryback": {
                          "type": "string",
                          "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                          "example": "-121.00"
                        },
                        "donationCarryforward": {
                          "type": "string",
                          "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                          "example": "-121.00"
                        },
                        "contributionAccountOpening": {
                          "type": "string",
                          "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                          "example": "-121.00"
                        },
                        "contributions": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "date": {
                                "type": "string",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                                "format": "date",
                                "example": "2026-07-01"
                              },
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "cash",
                                  "in_kind"
                                ]
                              },
                              "description": {
                                "type": "string",
                                "maxLength": 200,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "amount": {
                                "type": "string",
                                "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                                "example": "-121.00"
                              }
                            },
                            "required": [
                              "name",
                              "date",
                              "kind",
                              "amount"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "distributions": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "resolutionDate": {
                                "type": "string",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                                "format": "date",
                                "example": "2026-07-01"
                              },
                              "paidOn": {
                                "type": "string",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                                "format": "date",
                                "example": "2026-07-01"
                              },
                              "amount": {
                                "type": "string",
                                "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                                "example": "-121.00"
                              },
                              "certifiedReduction": {
                                "type": "string",
                                "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                                "example": "-121.00"
                              }
                            },
                            "required": [
                              "resolutionDate",
                              "paidOn",
                              "amount",
                              "certifiedReduction"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "taxBalanceEquity": {
                          "type": "string",
                          "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                          "example": "-121.00"
                        },
                        "multipleMunicipalities": {
                          "type": "boolean"
                        },
                        "relocation": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "date": {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                              "format": "date",
                              "example": "2026-07-01"
                            },
                            "from": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "to": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100,
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "date",
                            "from",
                            "to"
                          ],
                          "additionalProperties": false
                        },
                        "municipalities": {
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 25,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "postalCode": {
                                "type": "string",
                                "pattern": "^\\d{5}$"
                              },
                              "ags": {
                                "type": "string",
                                "pattern": "^\\d{8}$"
                              },
                              "hebesatz": {
                                "type": "string",
                                "pattern": "^\\d{1,4}(\\.\\d{1,2})?$",
                                "example": "121.00"
                              },
                              "wages": {
                                "type": "string",
                                "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                                "example": "-121.00"
                              }
                            },
                            "required": [
                              "name",
                              "postalCode",
                              "ags",
                              "hebesatz",
                              "wages"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "landHoldings": {
                          "maxItems": 99,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "fileNumber": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 17,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "assessedValue": {
                                "type": "string",
                                "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                                "example": "-121.00"
                              },
                              "category": {
                                "type": "string",
                                "enum": [
                                  "rental_east",
                                  "business_east",
                                  "mixed_east",
                                  "undeveloped_east",
                                  "other",
                                  "agricultural"
                                ]
                              }
                            },
                            "required": [
                              "fileNumber",
                              "assessedValue",
                              "category"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "propertyTaxExpense": {
                          "type": "string",
                          "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                          "example": "-121.00"
                        },
                        "licencesToNonResidents": {
                          "type": "string",
                          "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                          "example": "-121.00"
                        },
                        "participations": {
                          "maxItems": 99,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "countryCode": {
                                "type": "string",
                                "pattern": "^[A-Z]{2}$"
                              },
                              "sharePercent": {
                                "type": "string",
                                "pattern": "^\\d{1,3}(\\.\\d{1,4})?$",
                                "example": "121.0000"
                              },
                              "dividends": {
                                "type": "string",
                                "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                                "example": "-121.00"
                              }
                            },
                            "required": [
                              "name",
                              "countryCode",
                              "sharePercent",
                              "dividends"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "foreignIncome": {
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "countryCode": {
                                "type": "string",
                                "pattern": "^[A-Z]{2}$"
                              },
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "dividends",
                                  "other"
                                ]
                              },
                              "income": {
                                "type": "string",
                                "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                                "example": "-121.00"
                              }
                            },
                            "required": [
                              "countryCode",
                              "kind",
                              "income"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "smallBusinessSwitchDate": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "refundProcedureApplied": {
                          "type": "boolean"
                        },
                        "bic": {
                          "type": "string",
                          "maxLength": 11,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "representative": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "agent",
                                "receiving_agent"
                              ]
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "street": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "houseNumber": {
                              "type": "string",
                              "maxLength": 20,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "postalCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 12,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "city": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100,
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "role",
                            "name",
                            "street",
                            "postalCode",
                            "city"
                          ],
                          "additionalProperties": false
                        },
                        "singleTransportTax": {
                          "type": "string",
                          "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                          "example": "-121.00"
                        },
                        "distanceSales": {
                          "type": "string",
                          "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                          "example": "-121.00"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "year",
                    "facts"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsDeReturnFactsGet",
        "summary": "Declarations de return facts get",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "deReturnFactsGet"
      }
    },
    "/v1/declarations/de/return-facts/set": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Replace the facts of one year for the German annual returns. The returns built afterwards read them; a key left out stays unanswered.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "facts": {
                    "type": "object",
                    "properties": {
                      "changedShareholderIds": {
                        "maxItems": 500,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "shareholderContracts": {
                        "type": "boolean"
                      },
                      "contracts": {
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "date": {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                              "format": "date",
                              "example": "2026-07-01"
                            },
                            "partner": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "amount": {
                              "type": "string",
                              "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                              "example": "-121.00"
                            }
                          },
                          "required": [
                            "kind",
                            "date",
                            "partner",
                            "amount"
                          ]
                        }
                      },
                      "harmfulShareAcquisition": {
                        "type": "boolean"
                      },
                      "coronaAid": {
                        "type": "string",
                        "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                        "example": "-121.00"
                      },
                      "lossCarryback": {
                        "type": "string",
                        "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                        "example": "-121.00"
                      },
                      "donationCarryforward": {
                        "type": "string",
                        "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                        "example": "-121.00"
                      },
                      "contributionAccountOpening": {
                        "type": "string",
                        "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                        "example": "-121.00"
                      },
                      "contributions": {
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "date": {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                              "format": "date",
                              "example": "2026-07-01"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "cash",
                                "in_kind"
                              ]
                            },
                            "description": {
                              "type": "string",
                              "maxLength": 200,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "amount": {
                              "type": "string",
                              "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                              "example": "-121.00"
                            }
                          },
                          "required": [
                            "name",
                            "date",
                            "kind",
                            "amount"
                          ]
                        }
                      },
                      "distributions": {
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "resolutionDate": {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                              "format": "date",
                              "example": "2026-07-01"
                            },
                            "paidOn": {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                              "format": "date",
                              "example": "2026-07-01"
                            },
                            "amount": {
                              "type": "string",
                              "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                              "example": "-121.00"
                            },
                            "certifiedReduction": {
                              "type": "string",
                              "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                              "example": "-121.00"
                            }
                          },
                          "required": [
                            "resolutionDate",
                            "paidOn",
                            "amount",
                            "certifiedReduction"
                          ]
                        }
                      },
                      "taxBalanceEquity": {
                        "type": "string",
                        "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                        "example": "-121.00"
                      },
                      "multipleMunicipalities": {
                        "type": "boolean"
                      },
                      "relocation": {
                        "nullable": true,
                        "type": "object",
                        "properties": {
                          "date": {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "from": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "to": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "date",
                          "from",
                          "to"
                        ]
                      },
                      "municipalities": {
                        "maxItems": 200,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 25,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "postalCode": {
                              "type": "string",
                              "pattern": "^\\d{5}$"
                            },
                            "ags": {
                              "type": "string",
                              "pattern": "^\\d{8}$"
                            },
                            "hebesatz": {
                              "type": "string",
                              "pattern": "^\\d{1,4}(\\.\\d{1,2})?$",
                              "example": "121.00"
                            },
                            "wages": {
                              "type": "string",
                              "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                              "example": "-121.00"
                            }
                          },
                          "required": [
                            "name",
                            "postalCode",
                            "ags",
                            "hebesatz",
                            "wages"
                          ]
                        }
                      },
                      "landHoldings": {
                        "maxItems": 99,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "fileNumber": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 17,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "assessedValue": {
                              "type": "string",
                              "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                              "example": "-121.00"
                            },
                            "category": {
                              "type": "string",
                              "enum": [
                                "rental_east",
                                "business_east",
                                "mixed_east",
                                "undeveloped_east",
                                "other",
                                "agricultural"
                              ]
                            }
                          },
                          "required": [
                            "fileNumber",
                            "assessedValue",
                            "category"
                          ]
                        }
                      },
                      "propertyTaxExpense": {
                        "type": "string",
                        "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                        "example": "-121.00"
                      },
                      "licencesToNonResidents": {
                        "type": "string",
                        "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                        "example": "-121.00"
                      },
                      "participations": {
                        "maxItems": 99,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "countryCode": {
                              "type": "string",
                              "pattern": "^[A-Z]{2}$"
                            },
                            "sharePercent": {
                              "type": "string",
                              "pattern": "^\\d{1,3}(\\.\\d{1,4})?$",
                              "example": "121.0000"
                            },
                            "dividends": {
                              "type": "string",
                              "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                              "example": "-121.00"
                            }
                          },
                          "required": [
                            "name",
                            "countryCode",
                            "sharePercent",
                            "dividends"
                          ]
                        }
                      },
                      "foreignIncome": {
                        "maxItems": 200,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "countryCode": {
                              "type": "string",
                              "pattern": "^[A-Z]{2}$"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "dividends",
                                "other"
                              ]
                            },
                            "income": {
                              "type": "string",
                              "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                              "example": "-121.00"
                            }
                          },
                          "required": [
                            "countryCode",
                            "kind",
                            "income"
                          ]
                        }
                      },
                      "smallBusinessSwitchDate": {
                        "nullable": true,
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                        "format": "date",
                        "example": "2026-07-01"
                      },
                      "refundProcedureApplied": {
                        "type": "boolean"
                      },
                      "bic": {
                        "type": "string",
                        "maxLength": 11,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "representative": {
                        "nullable": true,
                        "type": "object",
                        "properties": {
                          "role": {
                            "type": "string",
                            "enum": [
                              "agent",
                              "receiving_agent"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "street": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "houseNumber": {
                            "type": "string",
                            "maxLength": 20,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "postalCode": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 12,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "city": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "role",
                          "name",
                          "street",
                          "postalCode",
                          "city"
                        ]
                      },
                      "singleTransportTax": {
                        "type": "string",
                        "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                        "example": "-121.00"
                      },
                      "distanceSales": {
                        "type": "string",
                        "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                        "example": "-121.00"
                      }
                    }
                  }
                },
                "required": [
                  "year",
                  "facts"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "facts": {
                      "type": "object",
                      "properties": {
                        "changedShareholderIds": {
                          "maxItems": 500,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "shareholderContracts": {
                          "type": "boolean"
                        },
                        "contracts": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "date": {
                                "type": "string",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                                "format": "date",
                                "example": "2026-07-01"
                              },
                              "partner": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "amount": {
                                "type": "string",
                                "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                                "example": "-121.00"
                              }
                            },
                            "required": [
                              "kind",
                              "date",
                              "partner",
                              "amount"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "harmfulShareAcquisition": {
                          "type": "boolean"
                        },
                        "coronaAid": {
                          "type": "string",
                          "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                          "example": "-121.00"
                        },
                        "lossCarryback": {
                          "type": "string",
                          "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                          "example": "-121.00"
                        },
                        "donationCarryforward": {
                          "type": "string",
                          "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                          "example": "-121.00"
                        },
                        "contributionAccountOpening": {
                          "type": "string",
                          "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                          "example": "-121.00"
                        },
                        "contributions": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "date": {
                                "type": "string",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                                "format": "date",
                                "example": "2026-07-01"
                              },
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "cash",
                                  "in_kind"
                                ]
                              },
                              "description": {
                                "type": "string",
                                "maxLength": 200,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "amount": {
                                "type": "string",
                                "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                                "example": "-121.00"
                              }
                            },
                            "required": [
                              "name",
                              "date",
                              "kind",
                              "amount"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "distributions": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "resolutionDate": {
                                "type": "string",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                                "format": "date",
                                "example": "2026-07-01"
                              },
                              "paidOn": {
                                "type": "string",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                                "format": "date",
                                "example": "2026-07-01"
                              },
                              "amount": {
                                "type": "string",
                                "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                                "example": "-121.00"
                              },
                              "certifiedReduction": {
                                "type": "string",
                                "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                                "example": "-121.00"
                              }
                            },
                            "required": [
                              "resolutionDate",
                              "paidOn",
                              "amount",
                              "certifiedReduction"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "taxBalanceEquity": {
                          "type": "string",
                          "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                          "example": "-121.00"
                        },
                        "multipleMunicipalities": {
                          "type": "boolean"
                        },
                        "relocation": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "date": {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                              "format": "date",
                              "example": "2026-07-01"
                            },
                            "from": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "to": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100,
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "date",
                            "from",
                            "to"
                          ],
                          "additionalProperties": false
                        },
                        "municipalities": {
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 25,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "postalCode": {
                                "type": "string",
                                "pattern": "^\\d{5}$"
                              },
                              "ags": {
                                "type": "string",
                                "pattern": "^\\d{8}$"
                              },
                              "hebesatz": {
                                "type": "string",
                                "pattern": "^\\d{1,4}(\\.\\d{1,2})?$",
                                "example": "121.00"
                              },
                              "wages": {
                                "type": "string",
                                "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                                "example": "-121.00"
                              }
                            },
                            "required": [
                              "name",
                              "postalCode",
                              "ags",
                              "hebesatz",
                              "wages"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "landHoldings": {
                          "maxItems": 99,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "fileNumber": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 17,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "assessedValue": {
                                "type": "string",
                                "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                                "example": "-121.00"
                              },
                              "category": {
                                "type": "string",
                                "enum": [
                                  "rental_east",
                                  "business_east",
                                  "mixed_east",
                                  "undeveloped_east",
                                  "other",
                                  "agricultural"
                                ]
                              }
                            },
                            "required": [
                              "fileNumber",
                              "assessedValue",
                              "category"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "propertyTaxExpense": {
                          "type": "string",
                          "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                          "example": "-121.00"
                        },
                        "licencesToNonResidents": {
                          "type": "string",
                          "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                          "example": "-121.00"
                        },
                        "participations": {
                          "maxItems": 99,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "countryCode": {
                                "type": "string",
                                "pattern": "^[A-Z]{2}$"
                              },
                              "sharePercent": {
                                "type": "string",
                                "pattern": "^\\d{1,3}(\\.\\d{1,4})?$",
                                "example": "121.0000"
                              },
                              "dividends": {
                                "type": "string",
                                "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                                "example": "-121.00"
                              }
                            },
                            "required": [
                              "name",
                              "countryCode",
                              "sharePercent",
                              "dividends"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "foreignIncome": {
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "countryCode": {
                                "type": "string",
                                "pattern": "^[A-Z]{2}$"
                              },
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "dividends",
                                  "other"
                                ]
                              },
                              "income": {
                                "type": "string",
                                "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                                "example": "-121.00"
                              }
                            },
                            "required": [
                              "countryCode",
                              "kind",
                              "income"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "smallBusinessSwitchDate": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "refundProcedureApplied": {
                          "type": "boolean"
                        },
                        "bic": {
                          "type": "string",
                          "maxLength": 11,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "representative": {
                          "nullable": true,
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "enum": [
                                "agent",
                                "receiving_agent"
                              ]
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "street": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "houseNumber": {
                              "type": "string",
                              "maxLength": 20,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "postalCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 12,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "city": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100,
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "role",
                            "name",
                            "street",
                            "postalCode",
                            "city"
                          ],
                          "additionalProperties": false
                        },
                        "singleTransportTax": {
                          "type": "string",
                          "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                          "example": "-121.00"
                        },
                        "distanceSales": {
                          "type": "string",
                          "pattern": "^-?\\d{1,15}(\\.\\d{1,2})?$",
                          "example": "-121.00"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "year",
                    "facts"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsDeReturnFactsSet",
        "summary": "Declarations de return facts set",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "deReturnFactsSet"
      }
    },
    "/v1/declarations/de/deuev/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Build the DEÜV notifications of a month (Anmeldung for every start, Abmeldung for every leaving, in December the Jahresmeldung for everyone employed on 31 December) as DSME records with the DBME, DBNA, DBGB and DBAN blocks of Anlage 4 in force from 2026, from the approved payroll runs and the employee record, for the company's own transmission channel.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  }
                },
                "required": [
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "month": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "content": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "records": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "employeeId": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "abgabegrund": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "versicherungsnummer": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "betriebsnummerKrankenkasse": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "personengruppe": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "beitragsgruppe": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "zeitraumBeginn": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "zeitraumEnde": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "entgelt": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "record": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "warnings": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          }
                        },
                        "required": [
                          "employeeId",
                          "name",
                          "abgabegrund",
                          "versicherungsnummer",
                          "betriebsnummerKrankenkasse",
                          "personengruppe",
                          "beitragsgruppe",
                          "zeitraumBeginn",
                          "zeitraumEnde",
                          "entgelt",
                          "record",
                          "warnings"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "year",
                    "month",
                    "fileName",
                    "content",
                    "source",
                    "records",
                    "warnings",
                    "notes"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsDeDeuevGenerate",
        "summary": "Declarations de deuev generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "deDeuevGenerate"
      }
    },
    "/v1/declarations/de/beitragsnachweis/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Build the monthly contribution statement to the health insurers (Beitragsnachweis) from the payroll run: one fixed-length record BW02 per insurer, in the record layout in force from 2026, ready for the company's own transmission channel.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  }
                },
                "required": [
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "month": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "content": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "records": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "betriebsnummerKrankenkasse": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "faelligkeitstag": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "kvAllgemein": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "kvZusatzbeitrag": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "pauschsteuer": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "beitragssatzAllgemein": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "summe": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "positionen": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "beitragsgruppe": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "betrag": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "beitragsgruppe",
                                "betrag"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "record": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "betriebsnummerKrankenkasse",
                          "faelligkeitstag",
                          "kvAllgemein",
                          "kvZusatzbeitrag",
                          "pauschsteuer",
                          "beitragssatzAllgemein",
                          "summe",
                          "positionen",
                          "record"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "year",
                    "month",
                    "fileName",
                    "content",
                    "source",
                    "records",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsDeBeitragsnachweisGenerate",
        "summary": "Declarations de beitragsnachweis generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "deBeitragsnachweisGenerate"
      }
    },
    "/v1/declarations/dk/selskabsskat/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Compute the oplysningsskema for selskaber (selskabsselvangivelsen) of an income year from the ledger and the recorded tax adjustments: accounting result before tax, tax adjustments, losses carried forward, taxable income, the 22 % corporation tax, reliefs and the balance, as the rubrikker the company keys into TastSelv Selskabsskat (DIAS). Skatteforvaltningen publishes no file format for the return; the XML is a working file.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  }
                },
                "required": [
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "periodStart": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodEnd": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "cvrNummer": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "field": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "label": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "value": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "field",
                          "label",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "year",
                    "periodStart",
                    "periodEnd",
                    "cvrNummer",
                    "fileName",
                    "xml",
                    "fields",
                    "warnings",
                    "notes",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsDkSelskabsskatGenerate",
        "summary": "Declarations dk selskabsskat generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "dkSelskabsskatGenerate"
      }
    },
    "/v1/declarations/ee/employment-register/send": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Send one employment register (töötamise register) entry for an employment contract to e-MTA over X-tee: the start of work, or its end with the reason recorded on the contract.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "contractId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "event": {
                    "type": "string",
                    "enum": [
                      "start",
                      "end"
                    ]
                  }
                },
                "required": [
                  "contractId",
                  "event"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reference": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "submitted",
                        "accepted",
                        "rejected"
                      ]
                    },
                    "detail": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "entryDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "reference",
                    "state",
                    "detail",
                    "fileName",
                    "entryDate",
                    "xml",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsEeEmploymentRegisterSend",
        "summary": "Declarations ee employment register send",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "eeEmploymentRegisterSend"
      }
    },
    "/v1/declarations/es/verifactu/declaracion-responsable": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Nordlet's declaración responsable for its VERI*FACTU invoicing system (Orden HAC/1177/2024, art. 15), as a PDF and as plain text.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "mimeType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "content": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "text": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "fileName",
                    "mimeType",
                    "content",
                    "text",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsEsVerifactuDeclaracionResponsable",
        "summary": "Declarations es verifactu declaracion responsable",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "esVerifactuDeclaracionResponsable"
      }
    },
    "/v1/declarations/ie/ct1/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Build the Form CT1 of an accounting year as the ROS version 26 XML and the accompanying financial statements as inline XBRL on the FRS 102 Irish Extension 2026 taxonomy Revenue accepts, both from the ledger, the recorded tax adjustments, the annual accounts record and the officers, for upload through the company’s own ROS account. Says whether the company is above the iXBRL deferral limits (balance sheet total €4.4 million, turnover €8.8 million, 50 employees).",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  }
                },
                "required": [
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "periodStart": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodEnd": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "taxRegNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "ct1": {
                      "type": "object",
                      "properties": {
                        "fileName": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "xml": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "fileName",
                        "xml"
                      ],
                      "additionalProperties": false
                    },
                    "accounts": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "fileName": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "xhtml": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "fileName",
                        "xhtml"
                      ],
                      "additionalProperties": false
                    },
                    "accountsBlocking": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "ixbrlMandatory": {
                      "type": "boolean"
                    },
                    "criteria": {
                      "type": "object",
                      "properties": {
                        "balanceSheetTotal": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "turnover": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "averageEmployees": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "balanceSheetTotal",
                        "turnover",
                        "averageEmployees"
                      ],
                      "additionalProperties": false
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "field": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "label": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "value": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "field",
                          "label",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "year",
                    "periodStart",
                    "periodEnd",
                    "taxRegNumber",
                    "ct1",
                    "accounts",
                    "accountsBlocking",
                    "ixbrlMandatory",
                    "criteria",
                    "fields",
                    "warnings",
                    "notes",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsIeCt1Generate",
        "summary": "Declarations ie ct1 generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "ieCt1Generate"
      }
    },
    "/v1/declarations/ie/b1/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Build the working paper for the Form B1 annual return of a financial year — company details, registered office, directors and secretary from Settings → Officers, the members from Settings → Shareholders, the issued share capital and the figures of the financial statements — in the order the CORE screens ask for them. The CRO publishes no file format for the B1, so it is keyed into CORE.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  }
                },
                "required": [
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "croNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "companyName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "annualReturnDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "field": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "label": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "value": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "field",
                          "label",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "directors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "identifier": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "appointedOn": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name",
                          "identifier",
                          "appointedOn"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "secretary": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "identifier": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "name",
                        "identifier"
                      ],
                      "additionalProperties": false
                    },
                    "members": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "identifier": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sharesQuantity": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sharesAmount": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sharesType": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "acquisitionDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          }
                        },
                        "required": [
                          "name",
                          "identifier",
                          "sharesQuantity",
                          "sharesAmount",
                          "sharesType",
                          "acquisitionDate"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "year",
                    "croNumber",
                    "companyName",
                    "annualReturnDate",
                    "fileName",
                    "xml",
                    "fields",
                    "directors",
                    "secretary",
                    "members",
                    "warnings",
                    "notes",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsIeB1Generate",
        "summary": "Declarations ie b1 generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "ieB1Generate"
      }
    },
    "/v1/declarations/it/sdi/purchase-send": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Build the TD16-TD19 integration document for a registered purchase invoice and send it to the Sistema di Interscambio. Since July 2022 a purchase from a supplier established abroad is reported this way instead of the esterometro. The Italian VAT rate to self-assess is a judgement about the supply: pass vatRatePercent unless the purchase lines already carry it, otherwise the request is refused rather than guessed.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "purchaseInvoiceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "vatRatePercent": {
                    "type": "string",
                    "pattern": "^\\d{1,2}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "tipoDocumento": {
                    "type": "string",
                    "enum": [
                      "TD16",
                      "TD17",
                      "TD18",
                      "TD19"
                    ]
                  }
                },
                "required": [
                  "purchaseInvoiceId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sent": {
                      "type": "boolean"
                    },
                    "system": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transport": {
                      "type": "string",
                      "enum": [
                        "bridge",
                        "direct"
                      ]
                    },
                    "tipoDocumento": {
                      "type": "string",
                      "enum": [
                        "TD16",
                        "TD17",
                        "TD18",
                        "TD19"
                      ]
                    },
                    "messageId": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "nationalNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "sent",
                        "accepted",
                        "rejected"
                      ]
                    },
                    "detail": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "net": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vat": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "sent",
                    "system",
                    "transport",
                    "tipoDocumento",
                    "messageId",
                    "nationalNumber",
                    "status",
                    "detail",
                    "fileId",
                    "net",
                    "vat",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsItSdiPurchaseSend",
        "summary": "Declarations it sdi purchase send",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "itSdiPurchaseSend"
      }
    },
    "/v1/declarations/it/sdi/purchase-preview": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Render the TD16-TD19 integration document for a registered purchase invoice without sending it, so the rate and the document type can be checked first.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "purchaseInvoiceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "vatRatePercent": {
                    "type": "string",
                    "pattern": "^\\d{1,2}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "tipoDocumento": {
                    "type": "string",
                    "enum": [
                      "TD16",
                      "TD17",
                      "TD18",
                      "TD19"
                    ]
                  }
                },
                "required": [
                  "purchaseInvoiceId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tipoDocumento": {
                      "type": "string",
                      "enum": [
                        "TD16",
                        "TD17",
                        "TD18",
                        "TD19"
                      ]
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contentType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "data": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "net": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vat": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "tipoDocumento",
                    "fileName",
                    "contentType",
                    "data",
                    "net",
                    "vat",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsItSdiPurchasePreview",
        "summary": "Declarations it sdi purchase preview",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "itSdiPurchasePreview"
      }
    },
    "/v1/declarations/lt/saft/send": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Upload the SAF-T file to i.SAF-T over the iSAFTUploaderService web service and start its processing. The file, the case reference and the status are kept as a declaration submission (submissionId), whose outcome Nordlet then checks with i.SAF-T. The submission itself is confirmed separately, because after confirmation the file can no longer be corrected. A range and data type already sent is sent again only with amend: true.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "dataType": {
                    "default": "F",
                    "type": "string",
                    "enum": [
                      "F",
                      "GL",
                      "SI",
                      "PI",
                      "PA",
                      "MG",
                      "AS"
                    ]
                  },
                  "confirm": {
                    "default": false,
                    "type": "boolean"
                  },
                  "amend": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "submissionId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "caseId": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "submitted",
                        "accepted",
                        "rejected"
                      ]
                    },
                    "detail": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "confirmed": {
                      "type": "boolean"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "submissionId",
                    "caseId",
                    "state",
                    "detail",
                    "fileName",
                    "confirmed",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsLtSaftSend",
        "summary": "Declarations lt saft send",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "ltSaftSend"
      }
    },
    "/v1/declarations/lt/sd/ffdata": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Render the Sodra 1-SD or 2-SD notice for the contracts starting or ending in the range as an .ffdata document for EDAS.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "1-SD",
                      "2-SD"
                    ]
                  },
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "managerFullName": {
                    "type": "string",
                    "maxLength": 68,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "preparatorDetails": {
                    "type": "string",
                    "maxLength": 68,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "type",
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "1-SD",
                        "2-SD"
                      ]
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rows": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "type",
                    "fileName",
                    "xml",
                    "rows",
                    "pageCount",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsLtSdFfdata",
        "summary": "Declarations lt sd ffdata",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "ltSdFfdata"
      }
    },
    "/v1/declarations/lt/pln204/ffdata": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Render the annual corporate income tax return PLN204 as an .ffdata document, including the PLN204S and PLN204Z annexes, from the ledger and the tax adjustments recorded for that year.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2018,
                    "maximum": 2100,
                    "format": "int64"
                  }
                },
                "required": [
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "ratePercent": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rateCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "year",
                    "fileName",
                    "xml",
                    "ratePercent",
                    "rateCode",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsLtPln204Ffdata",
        "summary": "Declarations lt pln204 ffdata",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "ltPln204Ffdata"
      }
    },
    "/v1/declarations/mt/company-tax/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Compute the company income tax return and self-assessment of a year of assessment from the ledger and the recorded tax adjustments: the accounting profit before tax, the add-backs and deductions, the approved donations, capital allowances and losses carried forward, the chargeable income, the 35 % charge, the relief against the tax and the allocation of the distributable profit to the five tax accounts. The Malta Tax and Customs Administration issues the return as a personalised spreadsheet to the registered tax practitioner and publishes no layout, so the XML is a working file and the figures are keyed into that spreadsheet.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  }
                },
                "required": [
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "yearOfAssessment": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "periodStart": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodEnd": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "incomeTaxNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "field": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "label": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "value": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "field",
                          "label",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "taxAccounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "label": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "code",
                          "label",
                          "amount"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "year",
                    "yearOfAssessment",
                    "periodStart",
                    "periodEnd",
                    "incomeTaxNumber",
                    "fileName",
                    "xml",
                    "fields",
                    "taxAccounts",
                    "warnings",
                    "notes",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsMtCompanyTaxGenerate",
        "summary": "Declarations mt company tax generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "mtCompanyTaxGenerate"
      }
    },
    "/v1/declarations/mt/annual-return/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Build the annual return of a year: the company number, registered office and made-up-to date, the share capital, the register of members, the directors and the company secretary and the accounts summary, as the figures the Malta Business Registry asks for on its own screens, plus the printed Annual Return Form of the Seventh Schedule filled in as a PDF for signing.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  }
                },
                "required": [
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "madeUpTo": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "mbrNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "companyName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "pdfFileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "pdf": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "formSource": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "field": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "label": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "value": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "field",
                          "label",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "members": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "identifier": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "shares": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "nominalValue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "shareClass": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name",
                          "identifier",
                          "shares",
                          "nominalValue",
                          "shareClass"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "officers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "position": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "identifier": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "position",
                          "name",
                          "identifier"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "year",
                    "madeUpTo",
                    "mbrNumber",
                    "companyName",
                    "fileName",
                    "xml",
                    "pdfFileName",
                    "pdf",
                    "formSource",
                    "fields",
                    "members",
                    "officers",
                    "warnings",
                    "notes",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsMtAnnualReturnGenerate",
        "summary": "Declarations mt annual return generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "mtAnnualReturnGenerate"
      }
    },
    "/v1/declarations/pl/jpk-fa/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Generate JPK_FA(4), the on-demand structure with every sales invoice issued in a period, its VAT bases per rate and one row per invoice line. Filed only when the tax office asks for it.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "dateFrom": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "dateTo": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "dateFrom",
                  "dateTo"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodStart": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodEnd": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "counts": {
                      "type": "object",
                      "properties": {
                        "invoices": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "lines": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "invoices",
                        "lines"
                      ],
                      "additionalProperties": false
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "invoices": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "lines": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "invoices",
                        "lines"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "fileName",
                    "xml",
                    "periodStart",
                    "periodEnd",
                    "warnings",
                    "notes",
                    "source",
                    "counts",
                    "totals"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsPlJpkFaGenerate",
        "summary": "Declarations pl jpk fa generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "plJpkFaGenerate"
      }
    },
    "/v1/declarations/pl/jpk-kr/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Generate JPK_KR(1), the on-demand structure with the chart of accounts and its opening balances and turnover, the journal and the double entries behind it. Filed only when the tax office asks for it.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "dateFrom": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "dateTo": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "dateFrom",
                  "dateTo"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodStart": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodEnd": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "counts": {
                      "type": "object",
                      "properties": {
                        "accounts": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "journalRows": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "entryRows": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "accounts",
                        "journalRows",
                        "entryRows"
                      ],
                      "additionalProperties": false
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "operations": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "debit": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "credit": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "operations",
                        "debit",
                        "credit"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "fileName",
                    "xml",
                    "periodStart",
                    "periodEnd",
                    "warnings",
                    "notes",
                    "source",
                    "counts",
                    "totals"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsPlJpkKrGenerate",
        "summary": "Declarations pl jpk kr generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "plJpkKrGenerate"
      }
    },
    "/v1/declarations/pl/jpk-mag/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Generate JPK_MAG(2), the on-demand structure with the warehouse documents of one warehouse: goods received from outside (PZ) or internally (PW) and issued to a customer (WZ) or internally (RW). Filed only when the tax office asks for it.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "dateFrom": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "dateTo": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "dateFrom",
                  "dateTo"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodStart": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodEnd": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warehouseCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "counts": {
                      "type": "object",
                      "properties": {
                        "pz": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "pw": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "wz": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "rw": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "rows": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "pz",
                        "pw",
                        "wz",
                        "rw",
                        "rows"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "fileName",
                    "xml",
                    "periodStart",
                    "periodEnd",
                    "warnings",
                    "notes",
                    "source",
                    "warehouseCode",
                    "counts"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsPlJpkMagGenerate",
        "summary": "Declarations pl jpk mag generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "plJpkMagGenerate"
      }
    },
    "/v1/declarations/pl/pit-11/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Generate PIT-11(29) for every person on the payroll of one year: the pay, the deductible costs, the advance withheld and the social and health contributions taken off it. One document per person, because that is how the form is filed.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  }
                },
                "required": [
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "persons": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "employeeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "firstName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lastName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "pesel": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "revenue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "deductibleCosts": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "advanceWithheld": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "socialContributions": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "healthContributions": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "xml": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "warnings": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          }
                        },
                        "required": [
                          "employeeId",
                          "firstName",
                          "lastName",
                          "pesel",
                          "revenue",
                          "deductibleCosts",
                          "advanceWithheld",
                          "socialContributions",
                          "healthContributions",
                          "fileName",
                          "xml",
                          "warnings"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "year",
                    "source",
                    "warnings",
                    "notes",
                    "persons"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsPlPit11Generate",
        "summary": "Declarations pl pit 11 generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "plPit11Generate"
      }
    },
    "/v1/declarations/pl/cit-8/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Generate CIT-8(34), the annual corporate income tax return, from the ledger of the year and the recorded tax adjustments. The tax office code and the small-taxpayer setting come from the e-Deklaracje compliance settings, the seat address from the JPK gateway settings. Names the annexes the figures would need, which are not produced.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  }
                },
                "required": [
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "periodStart": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodEnd": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "positions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "field": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "label": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "value": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "field",
                          "label",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "annexes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "year",
                    "periodStart",
                    "periodEnd",
                    "fileName",
                    "xml",
                    "positions",
                    "annexes",
                    "warnings",
                    "notes",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsPlCit8Generate",
        "summary": "Declarations pl cit 8 generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "plCit8Generate"
      }
    },
    "/v1/declarations/pl/zus-dra/compute": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Compute the monthly ZUS DRA settlement from the payroll run of one month: the pension, disability, sickness, accident and health insurance contributions and the Labour Fund, Solidarity Fund and guaranteed benefits fund charges, each split between the insured person and the payer. The amounts are carried into Płatnik or ePłatnik by hand.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  }
                },
                "required": [
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "month": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "runStatus": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "insuredCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "label": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "insured": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "payer": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "total": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "code",
                          "label",
                          "insured",
                          "payer",
                          "total"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "socialTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "healthTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fundsTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "total": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "year",
                    "month",
                    "source",
                    "runStatus",
                    "insuredCount",
                    "rows",
                    "socialTotal",
                    "healthTotal",
                    "fundsTotal",
                    "total",
                    "warnings",
                    "notes"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsPlZusDraCompute",
        "summary": "Declarations pl zus dra compute",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "plZusDraCompute"
      }
    },
    "/v1/declarations/pl/zus-dra/kedu": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Build the KEDU file for one month: the ZUS DRA settlement and one ZUS RCA report per person on the payroll, in the schema kedu_5_4 that Płatnik and ePłatnik import. The payer REGON, short name and declaration deadline code come from the ZUS compliance settings; the insurance title code and working time of each person from the employee record.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  }
                },
                "required": [
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "month": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "insured": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "employeeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "firstName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lastName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "pesel": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "kodTytulu": {
                            "type": "object",
                            "properties": {
                              "p1": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "p2": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "p3": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "p1",
                              "p2",
                              "p3"
                            ],
                            "additionalProperties": false
                          },
                          "pensionBase": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "healthBase": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "employeeId",
                          "firstName",
                          "lastName",
                          "pesel",
                          "kodTytulu",
                          "pensionBase",
                          "healthBase"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "year",
                    "month",
                    "fileName",
                    "xml",
                    "source",
                    "insured",
                    "warnings",
                    "notes"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsPlZusDraKedu",
        "summary": "Declarations pl zus dra kedu",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "plZusDraKedu"
      }
    },
    "/v1/declarations/pl/zus-dra/pdf": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Fill the published ZUS DRA form for one month and return it as a PDF. The amounts, the payer identity and the deadline code are the same ones the KEDU file carries; blocks the payroll does not hold (paid benefits, bridging pensions, income declaration of a self-paying person) stay empty.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  }
                },
                "required": [
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contentType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "data": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "fileName",
                    "contentType",
                    "data",
                    "source",
                    "warnings",
                    "notes"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsPlZusDraPdf",
        "summary": "Declarations pl zus dra pdf",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "plZusDraPdf"
      }
    },
    "/v1/declarations/ro/etransport/build": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Build the RO e-Transport declaration for an issued waybill: goods with their tariff codes and masses, the commercial partner, the route and the vehicle. The XML follows the ANAF eTransport v2 schema and is kept as a file on the waybill. Anything listed in blockers has to be filled in before /etransport/send will accept it.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "waybillId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "waybillId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "waybillId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "operationType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vehiclePlate": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "blockers": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "goods": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "waybillId",
                    "fileId",
                    "fileName",
                    "xml",
                    "operationType",
                    "vehiclePlate",
                    "blockers",
                    "goods",
                    "warnings",
                    "notes",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsRoEtransportBuild",
        "summary": "Declarations ro etransport build",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "roEtransportBuild"
      }
    },
    "/v1/declarations/ro/etransport/submit": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Hand the RO e-Transport declaration for an issued waybill to ANAF under the SPV OAuth token in compliance settings, and return the upload index the UIT is read back with. Answers 422 while any field the ANAF validator requires is still missing.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "waybillId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "waybillId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "waybillId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "reference": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "submitted",
                        "accepted",
                        "rejected"
                      ]
                    },
                    "uit": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "detail": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "waybillId",
                    "reference",
                    "state",
                    "uit",
                    "detail",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsRoEtransportSubmit",
        "summary": "Declarations ro etransport submit",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "roEtransportSubmit"
      }
    },
    "/v1/declarations/ro/etransport/status": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Read the outcome of an e-Transport declaration from ANAF by its upload index, under the SPV OAuth token in compliance settings. Returns the UIT code once the declaration validates.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reference": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "reference"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reference": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "submitted",
                        "accepted",
                        "rejected"
                      ]
                    },
                    "uit": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "detail": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "reference",
                    "state",
                    "uit",
                    "detail"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsRoEtransportStatus",
        "summary": "Declarations ro etransport status",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "roEtransportStatus"
      }
    },
    "/v1/declarations/li/lohndeklaration/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Build the annual wage declaration (Lohndeklaration) to the AHV-IV-FAK from the approved payroll runs of the year as the CSV that AHVeasy imports under Lohndeklaration → CSV-Import der Lohndaten: one row per employee with the 18 columns of the AHVeasy template, the AHV-liable wage and the ALV wage.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  }
                },
                "required": [
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "content": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "employeeId": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "versichertennummer": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vorname": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "geschlecht": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "heimatstaat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "eintrittsdatum": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "austrittsdatum": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "beschaeftigtVon": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "beschaeftigtBis": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "beschaeftigungsgrad": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ahvLohn": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "alv": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "warnings": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          }
                        },
                        "required": [
                          "employeeId",
                          "versichertennummer",
                          "vorname",
                          "name",
                          "geschlecht",
                          "heimatstaat",
                          "eintrittsdatum",
                          "austrittsdatum",
                          "beschaeftigtVon",
                          "beschaeftigtBis",
                          "beschaeftigungsgrad",
                          "ahvLohn",
                          "alv",
                          "warnings"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "year",
                    "fileName",
                    "content",
                    "rows",
                    "warnings",
                    "notes",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsLiLohndeklarationGenerate",
        "summary": "Declarations li lohndeklaration generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "liLohndeklarationGenerate"
      }
    },
    "/v1/declarations/li/lohnlisten/generate": {
      "post": {
        "tags": [
          "declarations"
        ],
        "description": "Build the annual wage list (Lohnliste) of a Liechtenstein employer from the approved payroll runs of the year as the XLSX file the tax administration's eLohnausweis / eLohnlisten application imports: one row per employee with PEID, name, birth date, address, gross wage, wage tax withheld and the settlement period.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  }
                },
                "required": [
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "content": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "employeeId": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "peid": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vorname": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "geburtsdatum": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "strasse": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "hausnummer": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "plz": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ort": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "wohnland": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "brutto": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lohnsteuer": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "abrechnungVon": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "abrechnungBis": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "warnings": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          }
                        },
                        "required": [
                          "employeeId",
                          "peid",
                          "name",
                          "vorname",
                          "geburtsdatum",
                          "strasse",
                          "hausnummer",
                          "plz",
                          "ort",
                          "wohnland",
                          "brutto",
                          "lohnsteuer",
                          "abrechnungVon",
                          "abrechnungBis",
                          "warnings"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "year",
                    "fileName",
                    "content",
                    "rows",
                    "warnings",
                    "notes",
                    "source"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsLiLohnlistenGenerate",
        "summary": "Declarations li lohnlisten generate",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "liLohnlistenGenerate"
      }
    },
    "/v1/declarations/configs/list": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "companyCountry": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "system": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "country": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "title": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fields": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "key": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "text",
                                    "secret",
                                    "select",
                                    "url",
                                    "certificate"
                                  ]
                                },
                                "multiline": {
                                  "type": "boolean"
                                },
                                "options": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  }
                                }
                              },
                              "required": [
                                "key",
                                "kind"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "endpoints": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "test": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "production": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "values": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "maxProperties": 100
                          },
                          "acceptsCertificate": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "system",
                          "country",
                          "title",
                          "fields",
                          "values",
                          "acceptsCertificate"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "companyCountry",
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsConfigsList",
        "summary": "Declarations configs list",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "configsList"
      }
    },
    "/v1/declarations/configs/update": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "system": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "config": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string",
                      "maxLength": 20000,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "maxProperties": 100
                  }
                },
                "required": [
                  "system",
                  "config"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "system": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "country": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "title": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "text",
                              "secret",
                              "select",
                              "url",
                              "certificate"
                            ]
                          },
                          "multiline": {
                            "type": "boolean"
                          },
                          "options": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          }
                        },
                        "required": [
                          "key",
                          "kind"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "endpoints": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "test": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "production": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "values": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    },
                    "acceptsCertificate": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "system",
                    "country",
                    "title",
                    "fields",
                    "values",
                    "acceptsCertificate"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsConfigsUpdate",
        "summary": "Declarations configs update",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "configsUpdate"
      }
    },
    "/v1/declarations/certificates/upload": {
      "post": {
        "summary": "Store the certificate or private key a filing system authenticates with",
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "system": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "fileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "content": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200000,
                    "description": "Base64-encoded PEM or PKCS#12 file",
                    "pattern": "^[\\s\\S]*$"
                  },
                  "passphrase": {
                    "type": "string",
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "system",
                  "fileName",
                  "content"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "system": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fieldKey": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "format": {
                            "type": "string",
                            "enum": [
                              "pem",
                              "pem-key",
                              "pfx"
                            ]
                          },
                          "fingerprint": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "subject": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "issuer": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notBefore": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notAfter": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sha256": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "health": {
                            "type": "string",
                            "enum": [
                              "ok",
                              "expiring",
                              "expired",
                              "unknown"
                            ]
                          },
                          "daysLeft": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "uploadedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "system",
                          "fieldKey",
                          "fileName",
                          "format",
                          "fingerprint",
                          "subject",
                          "issuer",
                          "notBefore",
                          "notAfter",
                          "sha256",
                          "health",
                          "daysLeft",
                          "uploadedAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsCertificatesUpload",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "certificatesUpload"
      }
    },
    "/v1/declarations/certificates/list": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "system": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fieldKey": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "format": {
                            "type": "string",
                            "enum": [
                              "pem",
                              "pem-key",
                              "pfx"
                            ]
                          },
                          "fingerprint": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "subject": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "issuer": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notBefore": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notAfter": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sha256": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "health": {
                            "type": "string",
                            "enum": [
                              "ok",
                              "expiring",
                              "expired",
                              "unknown"
                            ]
                          },
                          "daysLeft": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "uploadedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "system",
                          "fieldKey",
                          "fileName",
                          "format",
                          "fingerprint",
                          "subject",
                          "issuer",
                          "notBefore",
                          "notAfter",
                          "sha256",
                          "health",
                          "daysLeft",
                          "uploadedAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsCertificatesList",
        "summary": "Declarations certificates list",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "certificatesList"
      }
    },
    "/v1/declarations/certificates/delete": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "system": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "fieldKey": {
                    "type": "string",
                    "enum": [
                      "certificate",
                      "privateKey"
                    ]
                  }
                },
                "required": [
                  "system",
                  "fieldKey"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "system": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fieldKey": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "format": {
                            "type": "string",
                            "enum": [
                              "pem",
                              "pem-key",
                              "pfx"
                            ]
                          },
                          "fingerprint": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "subject": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "issuer": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notBefore": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notAfter": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sha256": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "health": {
                            "type": "string",
                            "enum": [
                              "ok",
                              "expiring",
                              "expired",
                              "unknown"
                            ]
                          },
                          "daysLeft": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "uploadedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "system",
                          "fieldKey",
                          "fileName",
                          "format",
                          "fingerprint",
                          "subject",
                          "issuer",
                          "notBefore",
                          "notAfter",
                          "sha256",
                          "health",
                          "daysLeft",
                          "uploadedAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsCertificatesDelete",
        "summary": "Declarations certificates delete",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "certificatesDelete"
      }
    },
    "/v1/declarations/automation/list": {
      "post": {
        "summary": "Which deadlines Nordlet can file by itself for this company, and which are switched on",
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ruleKey": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "title": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "country": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "system": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "applies": {
                            "type": "boolean"
                          },
                          "configured": {
                            "type": "boolean"
                          },
                          "certificate": {
                            "type": "string",
                            "enum": [
                              "ok",
                              "expiring",
                              "expired",
                              "unknown",
                              "missing",
                              "not-needed"
                            ]
                          },
                          "environment": {
                            "type": "string",
                            "enum": [
                              "test",
                              "production"
                            ]
                          }
                        },
                        "required": [
                          "ruleKey",
                          "title",
                          "country",
                          "system",
                          "enabled",
                          "applies",
                          "configured",
                          "certificate",
                          "environment"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsAutomationList",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "automationList"
      }
    },
    "/v1/declarations/automation/update": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ruleKey": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "enabled": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "ruleKey",
                  "enabled"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ruleKey": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "title": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "country": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "system": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "applies": {
                            "type": "boolean"
                          },
                          "configured": {
                            "type": "boolean"
                          },
                          "certificate": {
                            "type": "string",
                            "enum": [
                              "ok",
                              "expiring",
                              "expired",
                              "unknown",
                              "missing",
                              "not-needed"
                            ]
                          },
                          "environment": {
                            "type": "string",
                            "enum": [
                              "test",
                              "production"
                            ]
                          }
                        },
                        "required": [
                          "ruleKey",
                          "title",
                          "country",
                          "system",
                          "enabled",
                          "applies",
                          "configured",
                          "certificate",
                          "environment"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsAutomationUpdate",
        "summary": "Declarations automation update",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "automationUpdate"
      }
    },
    "/v1/declarations/submissions/retry": {
      "post": {
        "summary": "Send a filing whose delivery failed once more, with the bytes that were generated",
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "obligation": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodYear": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "periodMonth": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "variant": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "generated",
                        "submitted",
                        "accepted",
                        "rejected"
                      ]
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "externalRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "message": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "ruleKey": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "period": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentKey": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "amendment": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "origin": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transportSystem": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "environment": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "test",
                        "production"
                      ]
                    },
                    "submittedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "acceptedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "rejectedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "checkedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "nextCheckAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "attempts": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "deliveryError": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sentSha256": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "certificateFingerprint": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "submittedByActorType": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "submittedByActorId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "obligation",
                    "periodYear",
                    "periodMonth",
                    "variant",
                    "status",
                    "fileName",
                    "fileId",
                    "externalRef",
                    "message",
                    "ruleKey",
                    "period",
                    "documentKey",
                    "amendment",
                    "origin",
                    "transportSystem",
                    "environment",
                    "submittedAt",
                    "acceptedAt",
                    "rejectedAt",
                    "checkedAt",
                    "nextCheckAt",
                    "attempts",
                    "deliveryError",
                    "sentSha256",
                    "certificateFingerprint",
                    "submittedByActorType",
                    "submittedByActorId",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsSubmissionsRetry",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "submissionsRetry"
      }
    },
    "/v1/declarations/submissions/create": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "obligation": {
                    "type": "string",
                    "enum": [
                      "lt-isaf"
                    ]
                  },
                  "year": {
                    "type": "integer",
                    "minimum": 2016,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  },
                  "dataType": {
                    "default": "F",
                    "type": "string",
                    "enum": [
                      "F",
                      "S",
                      "P"
                    ]
                  }
                },
                "required": [
                  "obligation",
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "obligation": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodYear": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "periodMonth": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "variant": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "generated",
                        "submitted",
                        "accepted",
                        "rejected"
                      ]
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "externalRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "message": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "ruleKey": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "period": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentKey": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "amendment": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "origin": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transportSystem": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "environment": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "test",
                        "production"
                      ]
                    },
                    "submittedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "acceptedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "rejectedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "checkedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "nextCheckAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "attempts": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "deliveryError": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sentSha256": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "certificateFingerprint": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "submittedByActorType": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "submittedByActorId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "id",
                    "obligation",
                    "periodYear",
                    "periodMonth",
                    "variant",
                    "status",
                    "fileName",
                    "fileId",
                    "externalRef",
                    "message",
                    "ruleKey",
                    "period",
                    "documentKey",
                    "amendment",
                    "origin",
                    "transportSystem",
                    "environment",
                    "submittedAt",
                    "acceptedAt",
                    "rejectedAt",
                    "checkedAt",
                    "nextCheckAt",
                    "attempts",
                    "deliveryError",
                    "sentSha256",
                    "certificateFingerprint",
                    "submittedByActorType",
                    "submittedByActorId",
                    "createdAt",
                    "updatedAt",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsSubmissionsCreate",
        "summary": "Declarations submissions create",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "submissionsCreate"
      }
    },
    "/v1/declarations/submissions/mark": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "submitted",
                      "accepted",
                      "rejected"
                    ]
                  },
                  "externalRef": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "message": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id",
                  "status"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "obligation": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodYear": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "periodMonth": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "variant": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "generated",
                        "submitted",
                        "accepted",
                        "rejected"
                      ]
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "externalRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "message": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "ruleKey": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "period": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentKey": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "amendment": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "origin": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transportSystem": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "environment": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "test",
                        "production"
                      ]
                    },
                    "submittedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "acceptedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "rejectedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "checkedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "nextCheckAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "attempts": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "deliveryError": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sentSha256": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "certificateFingerprint": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "submittedByActorType": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "submittedByActorId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "obligation",
                    "periodYear",
                    "periodMonth",
                    "variant",
                    "status",
                    "fileName",
                    "fileId",
                    "externalRef",
                    "message",
                    "ruleKey",
                    "period",
                    "documentKey",
                    "amendment",
                    "origin",
                    "transportSystem",
                    "environment",
                    "submittedAt",
                    "acceptedAt",
                    "rejectedAt",
                    "checkedAt",
                    "nextCheckAt",
                    "attempts",
                    "deliveryError",
                    "sentSha256",
                    "certificateFingerprint",
                    "submittedByActorType",
                    "submittedByActorId",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsSubmissionsMark",
        "summary": "Declarations submissions mark",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "submissionsMark"
      }
    },
    "/v1/declarations/submissions/list": {
      "post": {
        "tags": [
          "declarations"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "obligation": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "periodYear": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "periodMonth": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "variant": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "generated",
                              "submitted",
                              "accepted",
                              "rejected"
                            ]
                          },
                          "fileName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "externalRef": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "message": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ruleKey": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "period": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentKey": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "amendment": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "origin": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "transportSystem": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "environment": {
                            "nullable": true,
                            "type": "string",
                            "enum": [
                              "test",
                              "production"
                            ]
                          },
                          "submittedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "acceptedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "rejectedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "checkedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "nextCheckAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "attempts": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "deliveryError": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sentSha256": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "certificateFingerprint": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "submittedByActorType": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "submittedByActorId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "obligation",
                          "periodYear",
                          "periodMonth",
                          "variant",
                          "status",
                          "fileName",
                          "fileId",
                          "externalRef",
                          "message",
                          "ruleKey",
                          "period",
                          "documentKey",
                          "amendment",
                          "origin",
                          "transportSystem",
                          "environment",
                          "submittedAt",
                          "acceptedAt",
                          "rejectedAt",
                          "checkedAt",
                          "nextCheckAt",
                          "attempts",
                          "deliveryError",
                          "sentSha256",
                          "certificateFingerprint",
                          "submittedByActorType",
                          "submittedByActorId",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "declarationsSubmissionsList",
        "summary": "Declarations submissions list",
        "x-fern-sdk-group-name": "declarations",
        "x-fern-sdk-method-name": "submissionsList"
      }
    },
    "/v1/ledger/accounts/list": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "translations": {
                            "nullable": true,
                            "type": "object",
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 300,
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            "maxProperties": 100
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "asset",
                              "liability",
                              "equity",
                              "income",
                              "expense"
                            ]
                          },
                          "parentId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isPostable": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "code",
                          "name",
                          "translations",
                          "type",
                          "parentId",
                          "isPostable",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerAccountsList",
        "summary": "Ledger accounts list",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "accountsList"
      }
    },
    "/v1/ledger/accounts/create": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "translations": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "maxProperties": 100
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "asset",
                      "liability",
                      "equity",
                      "income",
                      "expense"
                    ]
                  },
                  "parentId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isPostable": {
                    "default": true,
                    "type": "boolean"
                  }
                },
                "required": [
                  "code",
                  "name",
                  "type"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "translations": {
                      "nullable": true,
                      "type": "object",
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 300,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name"
                        ],
                        "additionalProperties": false
                      },
                      "maxProperties": 100
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "asset",
                        "liability",
                        "equity",
                        "income",
                        "expense"
                      ]
                    },
                    "parentId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isPostable": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "translations",
                    "type",
                    "parentId",
                    "isPostable",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerAccountsCreate",
        "summary": "Ledger accounts create",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "accountsCreate"
      }
    },
    "/v1/ledger/accounts/update": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "translations": {
                    "nullable": true,
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "maxProperties": 100
                  },
                  "parentId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isPostable": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "translations": {
                      "nullable": true,
                      "type": "object",
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 300,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name"
                        ],
                        "additionalProperties": false
                      },
                      "maxProperties": 100
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "asset",
                        "liability",
                        "equity",
                        "income",
                        "expense"
                      ]
                    },
                    "parentId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isPostable": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "translations",
                    "type",
                    "parentId",
                    "isPostable",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerAccountsUpdate",
        "summary": "Ledger accounts update",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "accountsUpdate"
      }
    },
    "/v1/ledger/accounts/apply-template": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "accounts": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    }
                  },
                  "required": [
                    "accounts"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerAccountsApplyTemplate",
        "summary": "Ledger accounts apply template",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "accountsApplyTemplate"
      }
    },
    "/v1/ledger/accounts/switch-chart": {
      "post": {
        "summary": "Move a company that has posted nothing yet to the chart of accounts of its country",
        "tags": [
          "ledger"
        ],
        "description": "Replaces the seeded chart with the chart template of the company country (the Romanian general chart for a company registered in Romania, the Lithuanian standard chart otherwise) and switches the posting defaults with it. Answers 409 when the company already uses that chart, has journal entries, holds accounts created by hand, or has settings that name an account the new chart does not have.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "chartTemplate": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "accounts": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    }
                  },
                  "required": [
                    "chartTemplate",
                    "accounts"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerAccountsSwitchChart",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "accountsSwitchChart"
      }
    },
    "/v1/ledger/periods/list": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "year": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "month": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "open",
                              "locked"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "year",
                          "month",
                          "status"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerPeriodsList",
        "summary": "Ledger periods list",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "periodsList"
      }
    },
    "/v1/ledger/periods/lock": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  }
                },
                "required": [
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "month": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "open",
                        "locked"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "year",
                    "month",
                    "status"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerPeriodsLock",
        "summary": "Ledger periods lock",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "periodsLock"
      }
    },
    "/v1/ledger/periods/unlock": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  }
                },
                "required": [
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "month": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "open",
                        "locked"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "year",
                    "month",
                    "status"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerPeriodsUnlock",
        "summary": "Ledger periods unlock",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "periodsUnlock"
      }
    },
    "/v1/ledger/journal/transactions/list": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "description": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentType": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "posted"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "postedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "date",
                          "description",
                          "documentType",
                          "documentId",
                          "partnerId",
                          "status",
                          "createdAt",
                          "postedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerJournalTransactionsList",
        "summary": "Ledger journal transactions list",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "journalTransactionsList"
      }
    },
    "/v1/ledger/cost-centers/create": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "groupId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "code",
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "groupId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "groupName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "groupId",
                    "groupName",
                    "isActive",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerCostCentersCreate",
        "summary": "Ledger cost centers create",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "costCentersCreate"
      }
    },
    "/v1/ledger/cost-centers/update": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isActive": {
                    "type": "boolean"
                  },
                  "groupId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "groupId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "groupName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "groupId",
                    "groupName",
                    "isActive",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerCostCentersUpdate",
        "summary": "Ledger cost centers update",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "costCentersUpdate"
      }
    },
    "/v1/ledger/cost-centers/list": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "groupId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "groupName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isActive": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "code",
                          "name",
                          "groupId",
                          "groupName",
                          "isActive",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerCostCentersList",
        "summary": "Ledger cost centers list",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "costCentersList"
      }
    },
    "/v1/ledger/cost-center-groups/create": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "code",
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerCostCenterGroupsCreate",
        "summary": "Ledger cost center groups create",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "costCenterGroupsCreate"
      }
    },
    "/v1/ledger/cost-center-groups/update": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerCostCenterGroupsUpdate",
        "summary": "Ledger cost center groups update",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "costCenterGroupsUpdate"
      }
    },
    "/v1/ledger/cost-center-groups/delete": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerCostCenterGroupsDelete",
        "summary": "Ledger cost center groups delete",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "costCenterGroupsDelete"
      }
    },
    "/v1/ledger/cost-center-groups/list": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "code",
                          "name",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerCostCenterGroupsList",
        "summary": "Ledger cost center groups list",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "costCenterGroupsList"
      }
    },
    "/v1/ledger/posting-rules/list": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "defaultCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "overridden": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "key",
                          "description",
                          "defaultCode",
                          "accountCode",
                          "overridden"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerPostingRulesList",
        "summary": "Ledger posting rules list",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "postingRulesList"
      }
    },
    "/v1/ledger/posting-rules/update": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "rules": {
                    "minItems": 1,
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string",
                          "enum": [
                            "sales.receivable",
                            "sales.revenueProducts",
                            "sales.revenueServices",
                            "sales.vatPayable",
                            "sales.advancesReceived",
                            "purchases.payables",
                            "purchases.vatReceivable",
                            "purchases.goodsForResale",
                            "purchases.defaultExpense",
                            "inventory.cogs",
                            "inventory.stock",
                            "production.laborApplied",
                            "production.scrap",
                            "bank.fxGain",
                            "bank.fxLoss",
                            "settlements.fees",
                            "settlements.commissionRevenue",
                            "settlements.sellerPayable",
                            "settlements.suspense",
                            "revenue.deferredIncome",
                            "revenue.contractAsset",
                            "revenue.refundLiability",
                            "assets.disposalGain",
                            "assets.disposalLoss",
                            "assets.disposalProceeds",
                            "closing.retainedEarnings"
                          ]
                        },
                        "accountCode": {
                          "nullable": true,
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "key",
                        "accountCode"
                      ]
                    }
                  }
                },
                "required": [
                  "rules"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "defaultCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "overridden": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "key",
                          "description",
                          "defaultCode",
                          "accountCode",
                          "overridden"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerPostingRulesUpdate",
        "summary": "Ledger posting rules update",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "postingRulesUpdate"
      }
    },
    "/v1/ledger/owners/create": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 35,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "equityAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "sharesQuantity": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "sharesAmount": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "sharesType": {
                    "type": "string",
                    "enum": [
                      "V",
                      "PR",
                      "PP",
                      "PRV"
                    ]
                  },
                  "sharesAcquisitionDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "withholdingTaxPercent": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "partnerLiability": {
                    "nullable": true,
                    "type": "string",
                    "enum": [
                      "general",
                      "limited"
                    ]
                  },
                  "specialBalanceRequired": {
                    "nullable": true,
                    "type": "boolean"
                  },
                  "supplementaryBalanceRequired": {
                    "nullable": true,
                    "type": "boolean"
                  },
                  "address": {
                    "type": "object",
                    "properties": {
                      "street": {
                        "type": "string",
                        "maxLength": 200,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "city": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "postalCode": {
                        "type": "string",
                        "maxLength": 20,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "countryCode": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 2,
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "equityAccountCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sharesQuantity": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sharesAmount": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sharesType": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sharesAcquisitionDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "withholdingTaxPercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerLiability": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "general",
                        "limited"
                      ]
                    },
                    "specialBalanceRequired": {
                      "nullable": true,
                      "type": "boolean"
                    },
                    "supplementaryBalanceRequired": {
                      "nullable": true,
                      "type": "boolean"
                    },
                    "address": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "street": {
                          "type": "string",
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "city": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "postalCode": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "countryCode": {
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 2,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "additionalProperties": false
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "code",
                    "equityAccountCode",
                    "sharesQuantity",
                    "sharesAmount",
                    "sharesType",
                    "sharesAcquisitionDate",
                    "withholdingTaxPercent",
                    "partnerLiability",
                    "specialBalanceRequired",
                    "supplementaryBalanceRequired",
                    "address",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerOwnersCreate",
        "summary": "Ledger owners create",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "ownersCreate"
      }
    },
    "/v1/ledger/owners/update": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 35,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "equityAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "sharesQuantity": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "sharesAmount": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "sharesType": {
                    "nullable": true,
                    "type": "string",
                    "enum": [
                      "V",
                      "PR",
                      "PP",
                      "PRV"
                    ]
                  },
                  "sharesAcquisitionDate": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "withholdingTaxPercent": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "partnerLiability": {
                    "nullable": true,
                    "type": "string",
                    "enum": [
                      "general",
                      "limited"
                    ]
                  },
                  "specialBalanceRequired": {
                    "nullable": true,
                    "type": "boolean"
                  },
                  "supplementaryBalanceRequired": {
                    "nullable": true,
                    "type": "boolean"
                  },
                  "address": {
                    "nullable": true,
                    "type": "object",
                    "properties": {
                      "street": {
                        "type": "string",
                        "maxLength": 200,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "city": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "postalCode": {
                        "type": "string",
                        "maxLength": 20,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "countryCode": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 2,
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "equityAccountCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sharesQuantity": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sharesAmount": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sharesType": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sharesAcquisitionDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "withholdingTaxPercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerLiability": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "general",
                        "limited"
                      ]
                    },
                    "specialBalanceRequired": {
                      "nullable": true,
                      "type": "boolean"
                    },
                    "supplementaryBalanceRequired": {
                      "nullable": true,
                      "type": "boolean"
                    },
                    "address": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "street": {
                          "type": "string",
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "city": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "postalCode": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "countryCode": {
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 2,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "additionalProperties": false
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "code",
                    "equityAccountCode",
                    "sharesQuantity",
                    "sharesAmount",
                    "sharesType",
                    "sharesAcquisitionDate",
                    "withholdingTaxPercent",
                    "partnerLiability",
                    "specialBalanceRequired",
                    "supplementaryBalanceRequired",
                    "address",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerOwnersUpdate",
        "summary": "Ledger owners update",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "ownersUpdate"
      }
    },
    "/v1/ledger/owners/delete": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "deleted": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerOwnersDelete",
        "summary": "Ledger owners delete",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "ownersDelete"
      }
    },
    "/v1/ledger/owners/list": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "equityAccountCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sharesQuantity": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sharesAmount": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sharesType": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sharesAcquisitionDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "withholdingTaxPercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerLiability": {
                            "nullable": true,
                            "type": "string",
                            "enum": [
                              "general",
                              "limited"
                            ]
                          },
                          "specialBalanceRequired": {
                            "nullable": true,
                            "type": "boolean"
                          },
                          "supplementaryBalanceRequired": {
                            "nullable": true,
                            "type": "boolean"
                          },
                          "address": {
                            "nullable": true,
                            "type": "object",
                            "properties": {
                              "street": {
                                "type": "string",
                                "maxLength": 200,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "city": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "postalCode": {
                                "type": "string",
                                "maxLength": 20,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "countryCode": {
                                "type": "string",
                                "minLength": 2,
                                "maxLength": 2,
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "additionalProperties": false
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "code",
                          "equityAccountCode",
                          "sharesQuantity",
                          "sharesAmount",
                          "sharesType",
                          "sharesAcquisitionDate",
                          "withholdingTaxPercent",
                          "partnerLiability",
                          "specialBalanceRequired",
                          "supplementaryBalanceRequired",
                          "address",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerOwnersList",
        "summary": "Ledger owners list",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "ownersList"
      }
    },
    "/v1/ledger/journal/transactions/get": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "description": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentType": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "posted"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "postedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "entries": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "debit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "credit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "accountId",
                          "accountCode",
                          "accountName",
                          "costCenterId",
                          "projectId",
                          "debit",
                          "credit",
                          "description"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "description",
                    "documentType",
                    "documentId",
                    "partnerId",
                    "status",
                    "createdAt",
                    "postedAt",
                    "entries"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerJournalTransactionsGet",
        "summary": "Ledger journal transactions get",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "journalTransactionsGet"
      }
    },
    "/v1/ledger/journal/transactions/create": {
      "post": {
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "entries": {
                    "minItems": 2,
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "accountCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "costCenterId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "projectId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "debit": {
                          "default": "0",
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "credit": {
                          "default": "0",
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 500,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "accountCode"
                      ]
                    }
                  }
                },
                "required": [
                  "date",
                  "entries"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "description": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentType": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "posted"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "postedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "description",
                    "documentType",
                    "documentId",
                    "partnerId",
                    "status",
                    "createdAt",
                    "postedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerJournalTransactionsCreate",
        "summary": "Ledger journal transactions create",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "journalTransactionsCreate"
      }
    },
    "/v1/ledger/statement-rows/schemes": {
      "post": {
        "summary": "National statement layouts available to the company",
        "tags": [
          "ledger"
        ],
        "description": "The rows or codes of each return or registry deposit of the company country that are filled from account balances. Accounts fall into a row by the layout defaults for the standard chart of accounts unless mapped under Settings → Statement rows.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "country": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "title": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "source": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "rows": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "code": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "label": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "statement": {
                                  "type": "string",
                                  "enum": [
                                    "balance_sheet",
                                    "income_statement"
                                  ]
                                }
                              },
                              "required": [
                                "code",
                                "label",
                                "statement"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "key",
                          "country",
                          "title",
                          "source",
                          "rows"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerStatementRowsSchemes",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "statementRowsSchemes"
      }
    },
    "/v1/ledger/statement-rows/list": {
      "post": {
        "summary": "Accounts placed on the rows of a statement layout, with the row totals of a period",
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scheme": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "scheme"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "scheme": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "country": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "title": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "source": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "label": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "statement": {
                                "type": "string",
                                "enum": [
                                  "balance_sheet",
                                  "income_statement"
                                ]
                              }
                            },
                            "required": [
                              "code",
                              "label",
                              "statement"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "key",
                        "country",
                        "title",
                        "source",
                        "rows"
                      ],
                      "additionalProperties": false
                    },
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "accounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "type": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "rowCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "source": {
                            "nullable": true,
                            "type": "string",
                            "enum": [
                              "mapping",
                              "default"
                            ]
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "code",
                          "name",
                          "type",
                          "rowCode",
                          "source",
                          "amount"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "label": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "statement": {
                            "type": "string",
                            "enum": [
                              "balance_sheet",
                              "income_statement"
                            ]
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "code",
                          "label",
                          "statement",
                          "amount"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "unmapped": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "scheme",
                    "fromDate",
                    "toDate",
                    "accounts",
                    "rows",
                    "unmapped"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerStatementRowsList",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "statementRowsList"
      }
    },
    "/v1/ledger/statement-rows/set": {
      "post": {
        "summary": "Map an account (or an account code prefix) to a row of a statement layout",
        "tags": [
          "ledger"
        ],
        "description": "A mapping on a code prefix covers every account whose code starts with it; the longest matching prefix wins. An empty rowCode removes the mapping so the layout default applies again.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scheme": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "accountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "rowCode": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "scheme",
                  "accountCode",
                  "rowCode"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "scheme": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "accountCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rowCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "scheme",
                    "accountCode",
                    "rowCode"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ledgerStatementRowsSet",
        "x-fern-sdk-group-name": "ledger",
        "x-fern-sdk-method-name": "statementRowsSet"
      }
    },
    "/v1/officers/list": {
      "post": {
        "summary": "Officers of the company",
        "tags": [
          "ledger"
        ],
        "description": "Directors, board members, the company secretary, representatives and liquidators, with their personal identifier, appointment and resignation dates and whether they sign the annual accounts. Annual returns and registry deposits are built from this register.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "role": {
                            "type": "string",
                            "enum": [
                              "director",
                              "managing_director",
                              "board_member",
                              "board_chair",
                              "supervisory_board_member",
                              "secretary",
                              "representative",
                              "liquidator"
                            ]
                          },
                          "personalCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "birthDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "appointedOn": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "powerNotary": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "resignedOn": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "signsAccounts": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "role",
                          "personalCode",
                          "birthDate",
                          "appointedOn",
                          "powerNotary",
                          "resignedOn",
                          "signsAccounts"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "officersList",
        "x-fern-sdk-group-name": "officers",
        "x-fern-sdk-method-name": "list"
      }
    },
    "/v1/officers/create": {
      "post": {
        "summary": "Record an officer of the company",
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "director",
                      "managing_director",
                      "board_member",
                      "board_chair",
                      "supervisory_board_member",
                      "secretary",
                      "representative",
                      "liquidator"
                    ]
                  },
                  "personalCode": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "birthDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "appointedOn": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "powerNotary": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "resignedOn": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "signsAccounts": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "name",
                  "role"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "role": {
                      "type": "string",
                      "enum": [
                        "director",
                        "managing_director",
                        "board_member",
                        "board_chair",
                        "supervisory_board_member",
                        "secretary",
                        "representative",
                        "liquidator"
                      ]
                    },
                    "personalCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "birthDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "appointedOn": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "powerNotary": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "resignedOn": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "signsAccounts": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "role",
                    "personalCode",
                    "birthDate",
                    "appointedOn",
                    "powerNotary",
                    "resignedOn",
                    "signsAccounts"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "officersCreate",
        "x-fern-sdk-group-name": "officers",
        "x-fern-sdk-method-name": "create"
      }
    },
    "/v1/officers/update": {
      "post": {
        "summary": "Change a recorded officer",
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "director",
                      "managing_director",
                      "board_member",
                      "board_chair",
                      "supervisory_board_member",
                      "secretary",
                      "representative",
                      "liquidator"
                    ]
                  },
                  "personalCode": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "birthDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "appointedOn": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "powerNotary": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "resignedOn": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "signsAccounts": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "role"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "role": {
                      "type": "string",
                      "enum": [
                        "director",
                        "managing_director",
                        "board_member",
                        "board_chair",
                        "supervisory_board_member",
                        "secretary",
                        "representative",
                        "liquidator"
                      ]
                    },
                    "personalCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "birthDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "appointedOn": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "powerNotary": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "resignedOn": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "signsAccounts": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "role",
                    "personalCode",
                    "birthDate",
                    "appointedOn",
                    "powerNotary",
                    "resignedOn",
                    "signsAccounts"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "officersUpdate",
        "x-fern-sdk-group-name": "officers",
        "x-fern-sdk-method-name": "update"
      }
    },
    "/v1/officers/delete": {
      "post": {
        "summary": "Remove a recorded officer",
        "tags": [
          "ledger"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "officersDelete",
        "x-fern-sdk-group-name": "officers",
        "x-fern-sdk-method-name": "delete"
      }
    },
    "/v1/migration/books/validate": {
      "post": {
        "summary": "Check a historical-books package without writing anything",
        "tags": [
          "migration"
        ],
        "description": "Runs every check the import runs (accounts, partners, balances, open invoices, assets, stock) and returns the same summary and warnings, then rolls everything back. Nothing is stored.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "cutoverDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "source": {
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "accounts": {
                    "maxItems": 2000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "asset",
                            "liability",
                            "equity",
                            "income",
                            "expense"
                          ]
                        },
                        "parentCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "isPostable": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "code",
                        "name",
                        "type"
                      ]
                    }
                  },
                  "partners": {
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 50,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "type": {
                          "default": "company",
                          "type": "string",
                          "enum": [
                            "company",
                            "person"
                          ]
                        },
                        "vatCode": {
                          "type": "string",
                          "minLength": 4,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "email": {
                          "type": "string",
                          "maxLength": 200,
                          "format": "email",
                          "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                        },
                        "phone": {
                          "type": "string",
                          "maxLength": 50,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "isCustomer": {
                          "default": true,
                          "type": "boolean"
                        },
                        "isSupplier": {
                          "default": false,
                          "type": "boolean"
                        },
                        "paymentTermDays": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 730,
                          "format": "int64"
                        },
                        "address": {
                          "type": "object",
                          "properties": {
                            "street": {
                              "type": "string",
                              "maxLength": 200,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "city": {
                              "type": "string",
                              "maxLength": 100,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "postalCode": {
                              "type": "string",
                              "maxLength": 20,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "countryCode": {
                              "type": "string",
                              "minLength": 2,
                              "maxLength": 2,
                              "pattern": "^[\\s\\S]*$"
                            }
                          }
                        },
                        "notes": {
                          "type": "string",
                          "maxLength": 2000,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "code",
                        "name"
                      ]
                    }
                  },
                  "items": {
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "type": {
                          "default": "product",
                          "type": "string",
                          "enum": [
                            "product",
                            "service"
                          ]
                        },
                        "unit": {
                          "default": "vnt",
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "barcode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "vatRatePercent": {
                          "type": "string",
                          "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        },
                        "salePriceExclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "purchasePriceExclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 2000,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "code",
                        "name"
                      ]
                    }
                  },
                  "openingBalances": {
                    "type": "object",
                    "properties": {
                      "date": {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                        "format": "date",
                        "example": "2026-07-01"
                      },
                      "balancingAccountCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 10,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "entries": {
                        "minItems": 1,
                        "maxItems": 2000,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "accountCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 10,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "debit": {
                              "default": "0",
                              "type": "string",
                              "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                              "example": "121.0000"
                            },
                            "credit": {
                              "default": "0",
                              "type": "string",
                              "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                              "example": "121.0000"
                            },
                            "description": {
                              "type": "string",
                              "maxLength": 500,
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "accountCode"
                          ]
                        }
                      }
                    },
                    "required": [
                      "entries"
                    ]
                  },
                  "journal": {
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "date": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 500,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "reference": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "entries": {
                          "minItems": 2,
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "accountCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 10,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "debit": {
                                "default": "0",
                                "type": "string",
                                "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                                "example": "121.0000"
                              },
                              "credit": {
                                "default": "0",
                                "type": "string",
                                "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                                "example": "121.0000"
                              },
                              "description": {
                                "type": "string",
                                "maxLength": 500,
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "accountCode"
                            ]
                          }
                        }
                      },
                      "required": [
                        "date",
                        "entries"
                      ]
                    }
                  },
                  "openReceivables": {
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "partnerCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 50,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dueDate": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "currency": {
                          "type": "string",
                          "minLength": 3,
                          "maxLength": 3,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "grossTotal": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "vatTotal": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "outstanding": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "fxRate": {
                          "type": "string",
                          "pattern": "^\\d{1,10}(\\.\\d{1,8})?$",
                          "example": "121.00000000"
                        },
                        "notes": {
                          "type": "string",
                          "maxLength": 2000,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "number": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 50,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "issueDate": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        }
                      },
                      "required": [
                        "partnerCode",
                        "grossTotal",
                        "number",
                        "issueDate"
                      ]
                    }
                  },
                  "openPayables": {
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "partnerCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 50,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dueDate": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "currency": {
                          "type": "string",
                          "minLength": 3,
                          "maxLength": 3,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "grossTotal": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "vatTotal": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "outstanding": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "fxRate": {
                          "type": "string",
                          "pattern": "^\\d{1,10}(\\.\\d{1,8})?$",
                          "example": "121.00000000"
                        },
                        "notes": {
                          "type": "string",
                          "maxLength": 2000,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "documentNumber": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "documentDate": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        }
                      },
                      "required": [
                        "partnerCode",
                        "grossTotal",
                        "documentNumber",
                        "documentDate"
                      ]
                    }
                  },
                  "assetGroups": {
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 50,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "assetAccountCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "depreciationAccountCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "expenseAccountCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "defaultUsefulLifeMonths": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1200,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "code",
                        "name",
                        "assetAccountCode",
                        "depreciationAccountCode"
                      ]
                    }
                  },
                  "fixedAssets": {
                    "maxItems": 2000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "groupCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 50,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 50,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "acquisitionDate": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "depreciationStartDate": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "acquisitionCost": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "salvageValue": {
                          "default": "0",
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "usefulLifeMonths": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1200,
                          "format": "int64"
                        },
                        "accumulatedDepreciation": {
                          "default": "0",
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "depreciatedMonths": {
                          "default": 0,
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 1200,
                          "format": "int64"
                        },
                        "notes": {
                          "type": "string",
                          "maxLength": 2000,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "groupCode",
                        "code",
                        "name",
                        "acquisitionDate",
                        "acquisitionCost"
                      ]
                    }
                  },
                  "stock": {
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "warehouseCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 50,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "itemCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "quantity": {
                          "type": "string",
                          "pattern": "^\\d{1,11}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "unitCost": {
                          "type": "string",
                          "pattern": "^\\d{1,13}(\\.\\d{1,6})?$",
                          "example": "121.000000"
                        },
                        "lotNumber": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "expiryDate": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        }
                      },
                      "required": [
                        "itemCode",
                        "quantity",
                        "unitCost"
                      ]
                    }
                  }
                },
                "required": [
                  "cutoverDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "dryRun": {
                      "type": "boolean"
                    },
                    "cutoverDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "accounts": {
                      "type": "object",
                      "properties": {
                        "created": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "existing": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "created",
                        "existing"
                      ],
                      "additionalProperties": false
                    },
                    "partners": {
                      "type": "object",
                      "properties": {
                        "created": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "existing": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "created",
                        "existing"
                      ],
                      "additionalProperties": false
                    },
                    "items": {
                      "type": "object",
                      "properties": {
                        "created": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "existing": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "created",
                        "existing"
                      ],
                      "additionalProperties": false
                    },
                    "assetGroups": {
                      "type": "object",
                      "properties": {
                        "created": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "existing": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "created",
                        "existing"
                      ],
                      "additionalProperties": false
                    },
                    "openingBalances": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "journalTransactionId": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "date": {
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "entries": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "debitTotal": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "creditTotal": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "balancingAmount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "journalTransactionId",
                        "date",
                        "entries",
                        "debitTotal",
                        "creditTotal",
                        "balancingAmount"
                      ],
                      "additionalProperties": false
                    },
                    "journal": {
                      "type": "object",
                      "properties": {
                        "transactions": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "entries": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "transactions",
                        "entries"
                      ],
                      "additionalProperties": false
                    },
                    "openReceivables": {
                      "type": "object",
                      "properties": {
                        "created": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "outstandingTotal": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "created",
                        "outstandingTotal"
                      ],
                      "additionalProperties": false
                    },
                    "openPayables": {
                      "type": "object",
                      "properties": {
                        "created": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "outstandingTotal": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "created",
                        "outstandingTotal"
                      ],
                      "additionalProperties": false
                    },
                    "fixedAssets": {
                      "type": "object",
                      "properties": {
                        "created": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "costTotal": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "accumulatedDepreciationTotal": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "created",
                        "costTotal",
                        "accumulatedDepreciationTotal"
                      ],
                      "additionalProperties": false
                    },
                    "stock": {
                      "type": "object",
                      "properties": {
                        "movements": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "costTotal": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "movements",
                        "costTotal"
                      ],
                      "additionalProperties": false
                    },
                    "numberSeries": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "prefix": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "year": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "nextNumber": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "prefix",
                          "year",
                          "nextNumber"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "dryRun",
                    "cutoverDate",
                    "accounts",
                    "partners",
                    "items",
                    "assetGroups",
                    "openingBalances",
                    "journal",
                    "openReceivables",
                    "openPayables",
                    "fixedAssets",
                    "stock",
                    "numberSeries",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "migrationBooksValidate",
        "x-fern-sdk-group-name": "migration",
        "x-fern-sdk-method-name": "booksValidate"
      }
    },
    "/v1/migration/books/import": {
      "post": {
        "summary": "Import historical books from a previous accounting system",
        "tags": [
          "migration"
        ],
        "description": "Brings a company over from another system in one call: chart of accounts, partners, items, opening balances (or the full journal history), open customer and supplier invoices, fixed assets with their accumulated depreciation, and stock on hand. The whole package is written in one database transaction — if any row fails, nothing is stored.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "cutoverDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "source": {
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "accounts": {
                    "maxItems": 2000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "asset",
                            "liability",
                            "equity",
                            "income",
                            "expense"
                          ]
                        },
                        "parentCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "isPostable": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "code",
                        "name",
                        "type"
                      ]
                    }
                  },
                  "partners": {
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 50,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "type": {
                          "default": "company",
                          "type": "string",
                          "enum": [
                            "company",
                            "person"
                          ]
                        },
                        "vatCode": {
                          "type": "string",
                          "minLength": 4,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "email": {
                          "type": "string",
                          "maxLength": 200,
                          "format": "email",
                          "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                        },
                        "phone": {
                          "type": "string",
                          "maxLength": 50,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "isCustomer": {
                          "default": true,
                          "type": "boolean"
                        },
                        "isSupplier": {
                          "default": false,
                          "type": "boolean"
                        },
                        "paymentTermDays": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 730,
                          "format": "int64"
                        },
                        "address": {
                          "type": "object",
                          "properties": {
                            "street": {
                              "type": "string",
                              "maxLength": 200,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "city": {
                              "type": "string",
                              "maxLength": 100,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "postalCode": {
                              "type": "string",
                              "maxLength": 20,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "countryCode": {
                              "type": "string",
                              "minLength": 2,
                              "maxLength": 2,
                              "pattern": "^[\\s\\S]*$"
                            }
                          }
                        },
                        "notes": {
                          "type": "string",
                          "maxLength": 2000,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "code",
                        "name"
                      ]
                    }
                  },
                  "items": {
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "type": {
                          "default": "product",
                          "type": "string",
                          "enum": [
                            "product",
                            "service"
                          ]
                        },
                        "unit": {
                          "default": "vnt",
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "barcode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "vatRatePercent": {
                          "type": "string",
                          "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        },
                        "salePriceExclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "purchasePriceExclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 2000,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "code",
                        "name"
                      ]
                    }
                  },
                  "openingBalances": {
                    "type": "object",
                    "properties": {
                      "date": {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                        "format": "date",
                        "example": "2026-07-01"
                      },
                      "balancingAccountCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 10,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "entries": {
                        "minItems": 1,
                        "maxItems": 2000,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "accountCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 10,
                              "pattern": "^[\\s\\S]*$"
                            },
                            "debit": {
                              "default": "0",
                              "type": "string",
                              "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                              "example": "121.0000"
                            },
                            "credit": {
                              "default": "0",
                              "type": "string",
                              "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                              "example": "121.0000"
                            },
                            "description": {
                              "type": "string",
                              "maxLength": 500,
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "accountCode"
                          ]
                        }
                      }
                    },
                    "required": [
                      "entries"
                    ]
                  },
                  "journal": {
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "date": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 500,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "reference": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "entries": {
                          "minItems": 2,
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "accountCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 10,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "debit": {
                                "default": "0",
                                "type": "string",
                                "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                                "example": "121.0000"
                              },
                              "credit": {
                                "default": "0",
                                "type": "string",
                                "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                                "example": "121.0000"
                              },
                              "description": {
                                "type": "string",
                                "maxLength": 500,
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "accountCode"
                            ]
                          }
                        }
                      },
                      "required": [
                        "date",
                        "entries"
                      ]
                    }
                  },
                  "openReceivables": {
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "partnerCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 50,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dueDate": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "currency": {
                          "type": "string",
                          "minLength": 3,
                          "maxLength": 3,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "grossTotal": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "vatTotal": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "outstanding": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "fxRate": {
                          "type": "string",
                          "pattern": "^\\d{1,10}(\\.\\d{1,8})?$",
                          "example": "121.00000000"
                        },
                        "notes": {
                          "type": "string",
                          "maxLength": 2000,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "number": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 50,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "issueDate": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        }
                      },
                      "required": [
                        "partnerCode",
                        "grossTotal",
                        "number",
                        "issueDate"
                      ]
                    }
                  },
                  "openPayables": {
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "partnerCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 50,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dueDate": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "currency": {
                          "type": "string",
                          "minLength": 3,
                          "maxLength": 3,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "grossTotal": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "vatTotal": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "outstanding": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "fxRate": {
                          "type": "string",
                          "pattern": "^\\d{1,10}(\\.\\d{1,8})?$",
                          "example": "121.00000000"
                        },
                        "notes": {
                          "type": "string",
                          "maxLength": 2000,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "documentNumber": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "documentDate": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        }
                      },
                      "required": [
                        "partnerCode",
                        "grossTotal",
                        "documentNumber",
                        "documentDate"
                      ]
                    }
                  },
                  "assetGroups": {
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 50,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "assetAccountCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "depreciationAccountCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "expenseAccountCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "defaultUsefulLifeMonths": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1200,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "code",
                        "name",
                        "assetAccountCode",
                        "depreciationAccountCode"
                      ]
                    }
                  },
                  "fixedAssets": {
                    "maxItems": 2000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "groupCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 50,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 50,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "acquisitionDate": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "depreciationStartDate": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "acquisitionCost": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "salvageValue": {
                          "default": "0",
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "usefulLifeMonths": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1200,
                          "format": "int64"
                        },
                        "accumulatedDepreciation": {
                          "default": "0",
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "depreciatedMonths": {
                          "default": 0,
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 1200,
                          "format": "int64"
                        },
                        "notes": {
                          "type": "string",
                          "maxLength": 2000,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "groupCode",
                        "code",
                        "name",
                        "acquisitionDate",
                        "acquisitionCost"
                      ]
                    }
                  },
                  "stock": {
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "warehouseCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 50,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "itemCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "quantity": {
                          "type": "string",
                          "pattern": "^\\d{1,11}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "unitCost": {
                          "type": "string",
                          "pattern": "^\\d{1,13}(\\.\\d{1,6})?$",
                          "example": "121.000000"
                        },
                        "lotNumber": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "expiryDate": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        }
                      },
                      "required": [
                        "itemCode",
                        "quantity",
                        "unitCost"
                      ]
                    }
                  }
                },
                "required": [
                  "cutoverDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "dryRun": {
                      "type": "boolean"
                    },
                    "cutoverDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "accounts": {
                      "type": "object",
                      "properties": {
                        "created": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "existing": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "created",
                        "existing"
                      ],
                      "additionalProperties": false
                    },
                    "partners": {
                      "type": "object",
                      "properties": {
                        "created": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "existing": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "created",
                        "existing"
                      ],
                      "additionalProperties": false
                    },
                    "items": {
                      "type": "object",
                      "properties": {
                        "created": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "existing": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "created",
                        "existing"
                      ],
                      "additionalProperties": false
                    },
                    "assetGroups": {
                      "type": "object",
                      "properties": {
                        "created": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "existing": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "created",
                        "existing"
                      ],
                      "additionalProperties": false
                    },
                    "openingBalances": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "journalTransactionId": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "date": {
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "entries": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "debitTotal": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "creditTotal": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "balancingAmount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "journalTransactionId",
                        "date",
                        "entries",
                        "debitTotal",
                        "creditTotal",
                        "balancingAmount"
                      ],
                      "additionalProperties": false
                    },
                    "journal": {
                      "type": "object",
                      "properties": {
                        "transactions": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "entries": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "transactions",
                        "entries"
                      ],
                      "additionalProperties": false
                    },
                    "openReceivables": {
                      "type": "object",
                      "properties": {
                        "created": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "outstandingTotal": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "created",
                        "outstandingTotal"
                      ],
                      "additionalProperties": false
                    },
                    "openPayables": {
                      "type": "object",
                      "properties": {
                        "created": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "outstandingTotal": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "created",
                        "outstandingTotal"
                      ],
                      "additionalProperties": false
                    },
                    "fixedAssets": {
                      "type": "object",
                      "properties": {
                        "created": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "costTotal": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "accumulatedDepreciationTotal": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "created",
                        "costTotal",
                        "accumulatedDepreciationTotal"
                      ],
                      "additionalProperties": false
                    },
                    "stock": {
                      "type": "object",
                      "properties": {
                        "movements": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "costTotal": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "movements",
                        "costTotal"
                      ],
                      "additionalProperties": false
                    },
                    "numberSeries": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "prefix": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "year": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "nextNumber": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "prefix",
                          "year",
                          "nextNumber"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "dryRun",
                    "cutoverDate",
                    "accounts",
                    "partners",
                    "items",
                    "assetGroups",
                    "openingBalances",
                    "journal",
                    "openReceivables",
                    "openPayables",
                    "fixedAssets",
                    "stock",
                    "numberSeries",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "migrationBooksImport",
        "x-fern-sdk-group-name": "migration",
        "x-fern-sdk-method-name": "booksImport"
      }
    },
    "/v1/assets/groups/create": {
      "post": {
        "tags": [
          "assets"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "defaultUsefulLifeMonths": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1200,
                    "format": "int64"
                  },
                  "assetAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "depreciationAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "expenseAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "code",
                  "name",
                  "assetAccountCode",
                  "depreciationAccountCode"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 20,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "defaultUsefulLifeMonths": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "assetAccountCode": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 10,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "depreciationAccountCode": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 10,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "expenseAccountCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "code",
                    "name",
                    "defaultUsefulLifeMonths",
                    "assetAccountCode",
                    "depreciationAccountCode",
                    "expenseAccountCode",
                    "id",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "assetsGroupsCreate",
        "summary": "Assets groups create",
        "x-fern-sdk-group-name": "assets",
        "x-fern-sdk-method-name": "groupsCreate"
      }
    },
    "/v1/assets/groups/list": {
      "post": {
        "tags": [
          "assets"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 20,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "defaultUsefulLifeMonths": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "assetAccountCode": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 10,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "depreciationAccountCode": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 10,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "expenseAccountCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "code",
                          "name",
                          "defaultUsefulLifeMonths",
                          "assetAccountCode",
                          "depreciationAccountCode",
                          "expenseAccountCode",
                          "id",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "assetsGroupsList",
        "summary": "Assets groups list",
        "x-fern-sdk-group-name": "assets",
        "x-fern-sdk-method-name": "groupsList"
      }
    },
    "/v1/assets/assets/create": {
      "post": {
        "tags": [
          "assets"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "groupId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "acquisitionDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "depreciationStartDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "acquisitionCost": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "salvageValue": {
                    "default": "0",
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "usefulLifeMonths": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1200,
                    "format": "int64"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documents": {
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "ref": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "name",
                        "ref"
                      ]
                    }
                  }
                },
                "required": [
                  "groupId",
                  "code",
                  "name",
                  "acquisitionDate",
                  "acquisitionCost"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "groupId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "acquisitionDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "depreciationStartDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "acquisitionCost": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "salvageValue": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "usefulLifeMonths": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totalCost": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "accumulatedDepreciation": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netBookValue": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "depreciatedMonths": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totalLifeMonths": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "fully_depreciated",
                        "disposed"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documents": {
                      "nullable": true,
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ref": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name",
                          "ref"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "inputVatAmount": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "inputVatFirstUseDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "inputVatDeductiblePercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "inputVatRealEstate": {
                      "type": "boolean"
                    },
                    "inputVatUseChanges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "year": {
                            "type": "integer",
                            "minimum": 2000,
                            "maximum": 2100,
                            "format": "int64"
                          },
                          "percent": {
                            "type": "string",
                            "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                            "example": "121.00"
                          },
                          "reason": {
                            "type": "string",
                            "enum": [
                              "use_change",
                              "sale",
                              "withdrawal"
                            ]
                          }
                        },
                        "required": [
                          "year",
                          "percent",
                          "reason"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "disposalDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "disposalReason": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "sold",
                        "scrapped",
                        "written_off"
                      ]
                    },
                    "disposalProceeds": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "disposalJournalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "groupId",
                    "code",
                    "name",
                    "acquisitionDate",
                    "depreciationStartDate",
                    "acquisitionCost",
                    "salvageValue",
                    "usefulLifeMonths",
                    "totalCost",
                    "accumulatedDepreciation",
                    "netBookValue",
                    "depreciatedMonths",
                    "totalLifeMonths",
                    "status",
                    "notes",
                    "documents",
                    "inputVatAmount",
                    "inputVatFirstUseDate",
                    "inputVatDeductiblePercent",
                    "inputVatRealEstate",
                    "inputVatUseChanges",
                    "disposalDate",
                    "disposalReason",
                    "disposalProceeds",
                    "disposalJournalTransactionId",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "assetsAssetsCreate",
        "summary": "Assets assets create",
        "x-fern-sdk-group-name": "assets",
        "x-fern-sdk-method-name": "assetsCreate"
      }
    },
    "/v1/assets/assets/update": {
      "post": {
        "tags": [
          "assets"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "groupId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "acquisitionDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "depreciationStartDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "acquisitionCost": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "salvageValue": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "usefulLifeMonths": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1200,
                    "format": "int64"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documents": {
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "ref": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "name",
                        "ref"
                      ]
                    }
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "groupId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "acquisitionDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "depreciationStartDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "acquisitionCost": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "salvageValue": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "usefulLifeMonths": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totalCost": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "accumulatedDepreciation": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netBookValue": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "depreciatedMonths": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totalLifeMonths": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "fully_depreciated",
                        "disposed"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documents": {
                      "nullable": true,
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ref": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name",
                          "ref"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "inputVatAmount": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "inputVatFirstUseDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "inputVatDeductiblePercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "inputVatRealEstate": {
                      "type": "boolean"
                    },
                    "inputVatUseChanges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "year": {
                            "type": "integer",
                            "minimum": 2000,
                            "maximum": 2100,
                            "format": "int64"
                          },
                          "percent": {
                            "type": "string",
                            "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                            "example": "121.00"
                          },
                          "reason": {
                            "type": "string",
                            "enum": [
                              "use_change",
                              "sale",
                              "withdrawal"
                            ]
                          }
                        },
                        "required": [
                          "year",
                          "percent",
                          "reason"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "disposalDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "disposalReason": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "sold",
                        "scrapped",
                        "written_off"
                      ]
                    },
                    "disposalProceeds": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "disposalJournalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "groupId",
                    "code",
                    "name",
                    "acquisitionDate",
                    "depreciationStartDate",
                    "acquisitionCost",
                    "salvageValue",
                    "usefulLifeMonths",
                    "totalCost",
                    "accumulatedDepreciation",
                    "netBookValue",
                    "depreciatedMonths",
                    "totalLifeMonths",
                    "status",
                    "notes",
                    "documents",
                    "inputVatAmount",
                    "inputVatFirstUseDate",
                    "inputVatDeductiblePercent",
                    "inputVatRealEstate",
                    "inputVatUseChanges",
                    "disposalDate",
                    "disposalReason",
                    "disposalProceeds",
                    "disposalJournalTransactionId",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "assetsAssetsUpdate",
        "summary": "Assets assets update",
        "x-fern-sdk-group-name": "assets",
        "x-fern-sdk-method-name": "assetsUpdate"
      }
    },
    "/v1/assets/assets/input-vat": {
      "post": {
        "tags": [
          "assets"
        ],
        "description": "Record the input VAT facts of a capital good that the annual VAT return needs for the adjustment of the deduction over the adjustment period (Article 187 of the VAT Directive, § 15a UStG): the input VAT on the acquisition, the date of first use, the share of use for deductible turnover at first use, whether it is land or a building (ten-year period instead of five), and every later year in which the share changed or the good was sold or withdrawn. Allowed also after depreciation has been posted.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "inputVatAmount": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "inputVatFirstUseDate": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "inputVatDeductiblePercent": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "inputVatRealEstate": {
                    "type": "boolean"
                  },
                  "inputVatUseChanges": {
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "year": {
                          "type": "integer",
                          "minimum": 2000,
                          "maximum": 2100,
                          "format": "int64"
                        },
                        "percent": {
                          "type": "string",
                          "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        },
                        "reason": {
                          "type": "string",
                          "enum": [
                            "use_change",
                            "sale",
                            "withdrawal"
                          ]
                        }
                      },
                      "required": [
                        "year",
                        "percent",
                        "reason"
                      ]
                    }
                  }
                },
                "required": [
                  "id",
                  "inputVatAmount",
                  "inputVatFirstUseDate",
                  "inputVatDeductiblePercent",
                  "inputVatRealEstate",
                  "inputVatUseChanges"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "groupId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "acquisitionDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "depreciationStartDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "acquisitionCost": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "salvageValue": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "usefulLifeMonths": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totalCost": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "accumulatedDepreciation": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netBookValue": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "depreciatedMonths": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totalLifeMonths": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "fully_depreciated",
                        "disposed"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documents": {
                      "nullable": true,
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ref": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name",
                          "ref"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "inputVatAmount": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "inputVatFirstUseDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "inputVatDeductiblePercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "inputVatRealEstate": {
                      "type": "boolean"
                    },
                    "inputVatUseChanges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "year": {
                            "type": "integer",
                            "minimum": 2000,
                            "maximum": 2100,
                            "format": "int64"
                          },
                          "percent": {
                            "type": "string",
                            "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                            "example": "121.00"
                          },
                          "reason": {
                            "type": "string",
                            "enum": [
                              "use_change",
                              "sale",
                              "withdrawal"
                            ]
                          }
                        },
                        "required": [
                          "year",
                          "percent",
                          "reason"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "disposalDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "disposalReason": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "sold",
                        "scrapped",
                        "written_off"
                      ]
                    },
                    "disposalProceeds": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "disposalJournalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "groupId",
                    "code",
                    "name",
                    "acquisitionDate",
                    "depreciationStartDate",
                    "acquisitionCost",
                    "salvageValue",
                    "usefulLifeMonths",
                    "totalCost",
                    "accumulatedDepreciation",
                    "netBookValue",
                    "depreciatedMonths",
                    "totalLifeMonths",
                    "status",
                    "notes",
                    "documents",
                    "inputVatAmount",
                    "inputVatFirstUseDate",
                    "inputVatDeductiblePercent",
                    "inputVatRealEstate",
                    "inputVatUseChanges",
                    "disposalDate",
                    "disposalReason",
                    "disposalProceeds",
                    "disposalJournalTransactionId",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "assetsAssetsInputVat",
        "summary": "Assets assets input vat",
        "x-fern-sdk-group-name": "assets",
        "x-fern-sdk-method-name": "assetsInputVat"
      }
    },
    "/v1/assets/assets/get": {
      "post": {
        "tags": [
          "assets"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "groupId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "acquisitionDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "depreciationStartDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "acquisitionCost": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "salvageValue": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "usefulLifeMonths": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totalCost": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "accumulatedDepreciation": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netBookValue": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "depreciatedMonths": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totalLifeMonths": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "fully_depreciated",
                        "disposed"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documents": {
                      "nullable": true,
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ref": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name",
                          "ref"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "inputVatAmount": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "inputVatFirstUseDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "inputVatDeductiblePercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "inputVatRealEstate": {
                      "type": "boolean"
                    },
                    "inputVatUseChanges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "year": {
                            "type": "integer",
                            "minimum": 2000,
                            "maximum": 2100,
                            "format": "int64"
                          },
                          "percent": {
                            "type": "string",
                            "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                            "example": "121.00"
                          },
                          "reason": {
                            "type": "string",
                            "enum": [
                              "use_change",
                              "sale",
                              "withdrawal"
                            ]
                          }
                        },
                        "required": [
                          "year",
                          "percent",
                          "reason"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "disposalDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "disposalReason": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "sold",
                        "scrapped",
                        "written_off"
                      ]
                    },
                    "disposalProceeds": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "disposalJournalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "groupId",
                    "code",
                    "name",
                    "acquisitionDate",
                    "depreciationStartDate",
                    "acquisitionCost",
                    "salvageValue",
                    "usefulLifeMonths",
                    "totalCost",
                    "accumulatedDepreciation",
                    "netBookValue",
                    "depreciatedMonths",
                    "totalLifeMonths",
                    "status",
                    "notes",
                    "documents",
                    "inputVatAmount",
                    "inputVatFirstUseDate",
                    "inputVatDeductiblePercent",
                    "inputVatRealEstate",
                    "inputVatUseChanges",
                    "disposalDate",
                    "disposalReason",
                    "disposalProceeds",
                    "disposalJournalTransactionId",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "assetsAssetsGet",
        "summary": "Assets assets get",
        "x-fern-sdk-group-name": "assets",
        "x-fern-sdk-method-name": "assetsGet"
      }
    },
    "/v1/assets/assets/list": {
      "post": {
        "tags": [
          "assets"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "groupId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "acquisitionDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "depreciationStartDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "acquisitionCost": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "salvageValue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "usefulLifeMonths": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "totalCost": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accumulatedDepreciation": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "netBookValue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "depreciatedMonths": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "totalLifeMonths": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "fully_depreciated",
                              "disposed"
                            ]
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documents": {
                            "nullable": true,
                            "maxItems": 50,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 200,
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "ref": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 500,
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "name",
                                "ref"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "inputVatAmount": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "inputVatFirstUseDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "inputVatDeductiblePercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "inputVatRealEstate": {
                            "type": "boolean"
                          },
                          "inputVatUseChanges": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "year": {
                                  "type": "integer",
                                  "minimum": 2000,
                                  "maximum": 2100,
                                  "format": "int64"
                                },
                                "percent": {
                                  "type": "string",
                                  "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                                  "example": "121.00"
                                },
                                "reason": {
                                  "type": "string",
                                  "enum": [
                                    "use_change",
                                    "sale",
                                    "withdrawal"
                                  ]
                                }
                              },
                              "required": [
                                "year",
                                "percent",
                                "reason"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "disposalDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "disposalReason": {
                            "nullable": true,
                            "type": "string",
                            "enum": [
                              "sold",
                              "scrapped",
                              "written_off"
                            ]
                          },
                          "disposalProceeds": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "disposalJournalTransactionId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "groupId",
                          "code",
                          "name",
                          "acquisitionDate",
                          "depreciationStartDate",
                          "acquisitionCost",
                          "salvageValue",
                          "usefulLifeMonths",
                          "totalCost",
                          "accumulatedDepreciation",
                          "netBookValue",
                          "depreciatedMonths",
                          "totalLifeMonths",
                          "status",
                          "notes",
                          "documents",
                          "inputVatAmount",
                          "inputVatFirstUseDate",
                          "inputVatDeductiblePercent",
                          "inputVatRealEstate",
                          "inputVatUseChanges",
                          "disposalDate",
                          "disposalReason",
                          "disposalProceeds",
                          "disposalJournalTransactionId",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "assetsAssetsList",
        "summary": "Assets assets list",
        "x-fern-sdk-group-name": "assets",
        "x-fern-sdk-method-name": "assetsList"
      }
    },
    "/v1/assets/assets/modernize": {
      "post": {
        "tags": [
          "assets"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "amount": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "addedLifeMonths": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1200,
                    "format": "int64"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id",
                  "date",
                  "amount"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "groupId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "acquisitionDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "depreciationStartDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "acquisitionCost": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "salvageValue": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "usefulLifeMonths": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totalCost": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "accumulatedDepreciation": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netBookValue": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "depreciatedMonths": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totalLifeMonths": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "fully_depreciated",
                        "disposed"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documents": {
                      "nullable": true,
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ref": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name",
                          "ref"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "inputVatAmount": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "inputVatFirstUseDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "inputVatDeductiblePercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "inputVatRealEstate": {
                      "type": "boolean"
                    },
                    "inputVatUseChanges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "year": {
                            "type": "integer",
                            "minimum": 2000,
                            "maximum": 2100,
                            "format": "int64"
                          },
                          "percent": {
                            "type": "string",
                            "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                            "example": "121.00"
                          },
                          "reason": {
                            "type": "string",
                            "enum": [
                              "use_change",
                              "sale",
                              "withdrawal"
                            ]
                          }
                        },
                        "required": [
                          "year",
                          "percent",
                          "reason"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "disposalDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "disposalReason": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "sold",
                        "scrapped",
                        "written_off"
                      ]
                    },
                    "disposalProceeds": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "disposalJournalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "groupId",
                    "code",
                    "name",
                    "acquisitionDate",
                    "depreciationStartDate",
                    "acquisitionCost",
                    "salvageValue",
                    "usefulLifeMonths",
                    "totalCost",
                    "accumulatedDepreciation",
                    "netBookValue",
                    "depreciatedMonths",
                    "totalLifeMonths",
                    "status",
                    "notes",
                    "documents",
                    "inputVatAmount",
                    "inputVatFirstUseDate",
                    "inputVatDeductiblePercent",
                    "inputVatRealEstate",
                    "inputVatUseChanges",
                    "disposalDate",
                    "disposalReason",
                    "disposalProceeds",
                    "disposalJournalTransactionId",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "assetsAssetsModernize",
        "summary": "Assets assets modernize",
        "x-fern-sdk-group-name": "assets",
        "x-fern-sdk-method-name": "assetsModernize"
      }
    },
    "/v1/assets/assets/dispose": {
      "post": {
        "tags": [
          "assets"
        ],
        "description": "Dispose of a fixed asset (sold, scrapped or written off). Removes its cost and accumulated depreciation, books the net book value as a disposal loss and the proceeds as a disposal gain (posting rules assets.disposalLoss, assets.disposalGain, assets.disposalProceeds), and stops its depreciation. Depreciation must be posted for every month before the disposal month.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "reason": {
                    "type": "string",
                    "enum": [
                      "sold",
                      "scrapped",
                      "written_off"
                    ]
                  },
                  "proceeds": {
                    "description": "Sale price excluding VAT; 0 when scrapped or written off",
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id",
                  "date",
                  "reason"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "groupId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "acquisitionDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "depreciationStartDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "acquisitionCost": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "salvageValue": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "usefulLifeMonths": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totalCost": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "accumulatedDepreciation": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netBookValue": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "depreciatedMonths": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totalLifeMonths": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "fully_depreciated",
                        "disposed"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documents": {
                      "nullable": true,
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ref": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name",
                          "ref"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "inputVatAmount": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "inputVatFirstUseDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "inputVatDeductiblePercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "inputVatRealEstate": {
                      "type": "boolean"
                    },
                    "inputVatUseChanges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "year": {
                            "type": "integer",
                            "minimum": 2000,
                            "maximum": 2100,
                            "format": "int64"
                          },
                          "percent": {
                            "type": "string",
                            "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                            "example": "121.00"
                          },
                          "reason": {
                            "type": "string",
                            "enum": [
                              "use_change",
                              "sale",
                              "withdrawal"
                            ]
                          }
                        },
                        "required": [
                          "year",
                          "percent",
                          "reason"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "disposalDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "disposalReason": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "sold",
                        "scrapped",
                        "written_off"
                      ]
                    },
                    "disposalProceeds": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "disposalJournalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "groupId",
                    "code",
                    "name",
                    "acquisitionDate",
                    "depreciationStartDate",
                    "acquisitionCost",
                    "salvageValue",
                    "usefulLifeMonths",
                    "totalCost",
                    "accumulatedDepreciation",
                    "netBookValue",
                    "depreciatedMonths",
                    "totalLifeMonths",
                    "status",
                    "notes",
                    "documents",
                    "inputVatAmount",
                    "inputVatFirstUseDate",
                    "inputVatDeductiblePercent",
                    "inputVatRealEstate",
                    "inputVatUseChanges",
                    "disposalDate",
                    "disposalReason",
                    "disposalProceeds",
                    "disposalJournalTransactionId",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "assetsAssetsDispose",
        "summary": "Assets assets dispose",
        "x-fern-sdk-group-name": "assets",
        "x-fern-sdk-method-name": "assetsDispose"
      }
    },
    "/v1/assets/depreciation/preview": {
      "post": {
        "tags": [
          "assets"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  }
                },
                "required": [
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "assetId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "alreadyPosted": {
                            "type": "boolean"
                          },
                          "months": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "description": "Every month this run posts for the asset, earlier unposted months included"
                          }
                        },
                        "required": [
                          "assetId",
                          "code",
                          "name",
                          "amount",
                          "alreadyPosted",
                          "months"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "total": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "rows",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "assetsDepreciationPreview",
        "summary": "Assets depreciation preview",
        "x-fern-sdk-group-name": "assets",
        "x-fern-sdk-method-name": "depreciationPreview"
      }
    },
    "/v1/assets/depreciation/post": {
      "post": {
        "tags": [
          "assets"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  }
                },
                "required": [
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "posted": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "skipped": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "posted",
                    "skipped",
                    "total",
                    "journalTransactionId"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "assetsDepreciationPost",
        "summary": "Assets depreciation post",
        "x-fern-sdk-group-name": "assets",
        "x-fern-sdk-method-name": "depreciationPost"
      }
    },
    "/v1/hr/positions/create": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "translations": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "maxProperties": 100
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "translations": {
                      "nullable": true,
                      "type": "object",
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name"
                        ],
                        "additionalProperties": false
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "translations"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrPositionsCreate",
        "summary": "Hr positions create",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "positionsCreate"
      }
    },
    "/v1/hr/positions/update": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "type": "string",
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "translations": {
                    "nullable": true,
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "maxProperties": 100
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "translations": {
                      "nullable": true,
                      "type": "object",
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name"
                        ],
                        "additionalProperties": false
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "translations"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrPositionsUpdate",
        "summary": "Hr positions update",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "positionsUpdate"
      }
    },
    "/v1/hr/positions/list": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "translations": {
                            "nullable": true,
                            "type": "object",
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 200,
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            "maxProperties": 100
                          }
                        },
                        "required": [
                          "id",
                          "code",
                          "name",
                          "translations"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrPositionsList",
        "summary": "Hr positions list",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "positionsList"
      }
    },
    "/v1/hr/employees/create": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "firstName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "lastName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "personalCode": {
                    "type": "string",
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "birthDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "email": {
                    "type": "string",
                    "maxLength": 200,
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "phone": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "address": {
                    "type": "object",
                    "properties": {
                      "street": {
                        "type": "string",
                        "maxLength": 300,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "city": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "postalCode": {
                        "type": "string",
                        "maxLength": 20,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "countryCode": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 2,
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "iban": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "socialInsuranceNo": {
                    "type": "string",
                    "maxLength": 30,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "socialInsuranceStart": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "hireDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "applyAllowance": {
                    "type": "boolean"
                  },
                  "allowanceOverride": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "pensionAccumulation": {
                    "type": "boolean"
                  },
                  "payrollOptions": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string",
                      "maxLength": 200,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "maxProperties": 100
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "attributes": {
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "value": {
                          "type": "string",
                          "maxLength": 1000,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "name",
                        "value"
                      ]
                    }
                  }
                },
                "required": [
                  "firstName",
                  "lastName"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "firstName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lastName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "personalCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "birthDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "email": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "phone": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "address": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "street": {
                          "type": "string",
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "city": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "postalCode": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "countryCode": {
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 2,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "additionalProperties": false
                    },
                    "iban": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "socialInsuranceNo": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "socialInsuranceStart": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "hireDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "terminationDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "applyAllowance": {
                      "type": "boolean"
                    },
                    "allowanceOverride": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "pensionAccumulation": {
                      "type": "boolean"
                    },
                    "payrollOptions": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "terminated"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "attributes": {
                      "nullable": true,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 1000,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "firstName",
                    "lastName",
                    "personalCode",
                    "birthDate",
                    "email",
                    "phone",
                    "address",
                    "iban",
                    "socialInsuranceNo",
                    "socialInsuranceStart",
                    "hireDate",
                    "terminationDate",
                    "applyAllowance",
                    "allowanceOverride",
                    "pensionAccumulation",
                    "payrollOptions",
                    "status",
                    "notes",
                    "attributes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrEmployeesCreate",
        "summary": "Hr employees create",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "employeesCreate"
      }
    },
    "/v1/hr/employees/update": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "firstName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "lastName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "personalCode": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "birthDate": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "email": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 200,
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "phone": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "address": {
                    "nullable": true,
                    "type": "object",
                    "properties": {
                      "street": {
                        "type": "string",
                        "maxLength": 300,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "city": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "postalCode": {
                        "type": "string",
                        "maxLength": 20,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "countryCode": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 2,
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "iban": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "socialInsuranceNo": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 30,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "socialInsuranceStart": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "hireDate": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "applyAllowance": {
                    "type": "boolean"
                  },
                  "allowanceOverride": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "pensionAccumulation": {
                    "type": "boolean"
                  },
                  "payrollOptions": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string",
                      "maxLength": 200,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "maxProperties": 100
                  },
                  "notes": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "attributes": {
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "value": {
                          "type": "string",
                          "maxLength": 1000,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "name",
                        "value"
                      ]
                    }
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "terminationDate": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "active",
                      "terminated"
                    ]
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "firstName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lastName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "personalCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "birthDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "email": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "phone": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "address": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "street": {
                          "type": "string",
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "city": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "postalCode": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "countryCode": {
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 2,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "additionalProperties": false
                    },
                    "iban": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "socialInsuranceNo": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "socialInsuranceStart": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "hireDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "terminationDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "applyAllowance": {
                      "type": "boolean"
                    },
                    "allowanceOverride": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "pensionAccumulation": {
                      "type": "boolean"
                    },
                    "payrollOptions": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "terminated"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "attributes": {
                      "nullable": true,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 1000,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "firstName",
                    "lastName",
                    "personalCode",
                    "birthDate",
                    "email",
                    "phone",
                    "address",
                    "iban",
                    "socialInsuranceNo",
                    "socialInsuranceStart",
                    "hireDate",
                    "terminationDate",
                    "applyAllowance",
                    "allowanceOverride",
                    "pensionAccumulation",
                    "payrollOptions",
                    "status",
                    "notes",
                    "attributes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrEmployeesUpdate",
        "summary": "Hr employees update",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "employeesUpdate"
      }
    },
    "/v1/hr/employees/get": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "firstName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lastName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "personalCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "birthDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "email": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "phone": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "address": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "street": {
                          "type": "string",
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "city": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "postalCode": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "countryCode": {
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 2,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "additionalProperties": false
                    },
                    "iban": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "socialInsuranceNo": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "socialInsuranceStart": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "hireDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "terminationDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "applyAllowance": {
                      "type": "boolean"
                    },
                    "allowanceOverride": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "pensionAccumulation": {
                      "type": "boolean"
                    },
                    "payrollOptions": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "terminated"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "attributes": {
                      "nullable": true,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 1000,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "firstName",
                    "lastName",
                    "personalCode",
                    "birthDate",
                    "email",
                    "phone",
                    "address",
                    "iban",
                    "socialInsuranceNo",
                    "socialInsuranceStart",
                    "hireDate",
                    "terminationDate",
                    "applyAllowance",
                    "allowanceOverride",
                    "pensionAccumulation",
                    "payrollOptions",
                    "status",
                    "notes",
                    "attributes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrEmployeesGet",
        "summary": "Hr employees get",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "employeesGet"
      }
    },
    "/v1/hr/employees/fields": {
      "post": {
        "summary": "Extra employee details the country of the company asks for",
        "tags": [
          "hr"
        ],
        "description": "Attributes a filing of the company country needs about a person that the shared employee record does not carry, such as the sex and place of birth an Italian income certificate asks for. Their values are kept in the payrollOptions of the employee.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "country": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "text",
                              "select",
                              "date"
                            ]
                          },
                          "options": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "maxLength": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "key",
                          "kind"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "country",
                    "fields"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrEmployeesFields",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "employeesFields"
      }
    },
    "/v1/hr/employees/list": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "firstName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lastName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "personalCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "birthDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "email": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "phone": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "address": {
                            "nullable": true,
                            "type": "object",
                            "properties": {
                              "street": {
                                "type": "string",
                                "maxLength": 300,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "city": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "postalCode": {
                                "type": "string",
                                "maxLength": 20,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "countryCode": {
                                "type": "string",
                                "minLength": 2,
                                "maxLength": 2,
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "additionalProperties": false
                          },
                          "iban": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "socialInsuranceNo": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "socialInsuranceStart": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "hireDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "terminationDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "applyAllowance": {
                            "type": "boolean"
                          },
                          "allowanceOverride": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "pensionAccumulation": {
                            "type": "boolean"
                          },
                          "payrollOptions": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "maxProperties": 100
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "terminated"
                            ]
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "attributes": {
                            "nullable": true,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "value": {
                                  "type": "string",
                                  "maxLength": 1000,
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "name",
                                "value"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "code",
                          "firstName",
                          "lastName",
                          "personalCode",
                          "birthDate",
                          "email",
                          "phone",
                          "address",
                          "iban",
                          "socialInsuranceNo",
                          "socialInsuranceStart",
                          "hireDate",
                          "terminationDate",
                          "applyAllowance",
                          "allowanceOverride",
                          "pensionAccumulation",
                          "payrollOptions",
                          "status",
                          "notes",
                          "attributes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrEmployeesList",
        "summary": "Hr employees list",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "employeesList"
      }
    },
    "/v1/hr/employees/delete": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrEmployeesDelete",
        "summary": "Hr employees delete",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "employeesDelete"
      }
    },
    "/v1/hr/employees/anonymize": {
      "post": {
        "summary": "Blank an employee's personal data and hide the record",
        "tags": [
          "hr"
        ],
        "description": "Replaces the name with a placeholder and removes personal code, birth date, contact details, address, bank account, social-insurance number, notes and sick-leave reasons. Payroll and contract rows stay linked to the record for the statutory retention period.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "firstName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lastName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "personalCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "birthDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "email": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "phone": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "address": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "street": {
                          "type": "string",
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "city": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "postalCode": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "countryCode": {
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 2,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "additionalProperties": false
                    },
                    "iban": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "socialInsuranceNo": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "socialInsuranceStart": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "hireDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "terminationDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "applyAllowance": {
                      "type": "boolean"
                    },
                    "allowanceOverride": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "pensionAccumulation": {
                      "type": "boolean"
                    },
                    "payrollOptions": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "terminated"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "attributes": {
                      "nullable": true,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 1000,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "firstName",
                    "lastName",
                    "personalCode",
                    "birthDate",
                    "email",
                    "phone",
                    "address",
                    "iban",
                    "socialInsuranceNo",
                    "socialInsuranceStart",
                    "hireDate",
                    "terminationDate",
                    "applyAllowance",
                    "allowanceOverride",
                    "pensionAccumulation",
                    "payrollOptions",
                    "status",
                    "notes",
                    "attributes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrEmployeesAnonymize",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "employeesAnonymize"
      }
    },
    "/v1/hr/contracts/create": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "employeeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "positionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "departmentId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "scheduleId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "agreementId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "contractNo": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "type": {
                    "default": "permanent",
                    "type": "string",
                    "enum": [
                      "permanent",
                      "fixed_term"
                    ]
                  },
                  "startDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "endDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "baseSalary": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "salaryType": {
                    "default": "monthly",
                    "type": "string",
                    "enum": [
                      "monthly",
                      "hourly",
                      "weekly",
                      "daily",
                      "yearly"
                    ]
                  },
                  "workHours": {
                    "type": "string",
                    "pattern": "^\\d{1,4}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "employeeId",
                  "startDate",
                  "baseSalary"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "positionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "departmentId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "scheduleId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "agreementId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contractNo": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "permanent",
                        "fixed_term"
                      ]
                    },
                    "startDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "endDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "endReason": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "baseSalary": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "salaryType": {
                      "type": "string",
                      "enum": [
                        "monthly",
                        "hourly",
                        "weekly",
                        "daily",
                        "yearly"
                      ]
                    },
                    "workHours": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "workHoursUnit": {
                      "type": "string",
                      "enum": [
                        "day",
                        "week"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "ended"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "employeeId",
                    "positionId",
                    "departmentId",
                    "scheduleId",
                    "agreementId",
                    "contractNo",
                    "type",
                    "startDate",
                    "endDate",
                    "endReason",
                    "baseSalary",
                    "salaryType",
                    "workHours",
                    "workHoursUnit",
                    "status",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrContractsCreate",
        "summary": "Hr contracts create",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "contractsCreate"
      }
    },
    "/v1/hr/contracts/end": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "endDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "endReason": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id",
                  "endDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "positionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "departmentId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "scheduleId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "agreementId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contractNo": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "permanent",
                        "fixed_term"
                      ]
                    },
                    "startDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "endDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "endReason": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "baseSalary": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "salaryType": {
                      "type": "string",
                      "enum": [
                        "monthly",
                        "hourly",
                        "weekly",
                        "daily",
                        "yearly"
                      ]
                    },
                    "workHours": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "workHoursUnit": {
                      "type": "string",
                      "enum": [
                        "day",
                        "week"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "ended"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "employeeId",
                    "positionId",
                    "departmentId",
                    "scheduleId",
                    "agreementId",
                    "contractNo",
                    "type",
                    "startDate",
                    "endDate",
                    "endReason",
                    "baseSalary",
                    "salaryType",
                    "workHours",
                    "workHoursUnit",
                    "status",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrContractsEnd",
        "summary": "Hr contracts end",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "contractsEnd"
      }
    },
    "/v1/hr/contracts/list": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employeeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "positionId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "departmentId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "scheduleId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "agreementId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "contractNo": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "permanent",
                              "fixed_term"
                            ]
                          },
                          "startDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "endDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "endReason": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "baseSalary": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "salaryType": {
                            "type": "string",
                            "enum": [
                              "monthly",
                              "hourly",
                              "weekly",
                              "daily",
                              "yearly"
                            ]
                          },
                          "workHours": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "workHoursUnit": {
                            "type": "string",
                            "enum": [
                              "day",
                              "week"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "ended"
                            ]
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "employeeId",
                          "positionId",
                          "departmentId",
                          "scheduleId",
                          "agreementId",
                          "contractNo",
                          "type",
                          "startDate",
                          "endDate",
                          "endReason",
                          "baseSalary",
                          "salaryType",
                          "workHours",
                          "workHoursUnit",
                          "status",
                          "notes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrContractsList",
        "summary": "Hr contracts list",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "contractsList"
      }
    },
    "/v1/hr/leave-balances/set": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "employeeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "entitledDays": {
                    "type": "string",
                    "pattern": "^\\d{1,4}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "usedDays": {
                    "type": "string",
                    "pattern": "^\\d{1,4}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  }
                },
                "required": [
                  "employeeId",
                  "year",
                  "entitledDays"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "employeeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "entitledDays": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "usedDays": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "remainingDays": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "employeeId",
                    "year",
                    "entitledDays",
                    "usedDays",
                    "remainingDays"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrLeaveBalancesSet",
        "summary": "Hr leave balances set",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "leaveBalancesSet"
      }
    },
    "/v1/hr/leave-balances/list": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "employeeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "year": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "employeeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "year": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "entitledDays": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "usedDays": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "remainingDays": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "employeeId",
                          "year",
                          "entitledDays",
                          "usedDays",
                          "remainingDays"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrLeaveBalancesList",
        "summary": "Hr leave balances list",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "leaveBalancesList"
      }
    },
    "/v1/hr/incapacity-certificates/create": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "employeeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "series": {
                    "type": "string",
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "number": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 30,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "reason": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "employeeId",
                  "number",
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "series": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "number": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "reason": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "employeeId",
                    "series",
                    "number",
                    "fromDate",
                    "toDate",
                    "reason",
                    "notes"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrIncapacityCertificatesCreate",
        "summary": "Hr incapacity certificates create",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "incapacityCertificatesCreate"
      }
    },
    "/v1/hr/incapacity-certificates/list": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employeeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "series": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "number": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fromDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "toDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "reason": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "employeeId",
                          "series",
                          "number",
                          "fromDate",
                          "toDate",
                          "reason",
                          "notes"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrIncapacityCertificatesList",
        "summary": "Hr incapacity certificates list",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "incapacityCertificatesList"
      }
    },
    "/v1/hr/employees/records/create": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "employeeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "education",
                      "qualification",
                      "certificate",
                      "training"
                    ]
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "institution": {
                    "type": "string",
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "issuedAt": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "validUntil": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "fileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "employeeId",
                  "type",
                  "title"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "education",
                        "qualification",
                        "certificate",
                        "training"
                      ]
                    },
                    "title": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "institution": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issuedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "validUntil": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "employeeId",
                    "type",
                    "title",
                    "institution",
                    "issuedAt",
                    "validUntil",
                    "fileId",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrEmployeesRecordsCreate",
        "summary": "Hr employees records create",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "employeesRecordsCreate"
      }
    },
    "/v1/hr/employees/records/update": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "education",
                      "qualification",
                      "certificate",
                      "training"
                    ]
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "institution": {
                    "type": "string",
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "issuedAt": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "validUntil": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "fileId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "education",
                        "qualification",
                        "certificate",
                        "training"
                      ]
                    },
                    "title": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "institution": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "issuedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "validUntil": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "employeeId",
                    "type",
                    "title",
                    "institution",
                    "issuedAt",
                    "validUntil",
                    "fileId",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrEmployeesRecordsUpdate",
        "summary": "Hr employees records update",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "employeesRecordsUpdate"
      }
    },
    "/v1/hr/employees/records/delete": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrEmployeesRecordsDelete",
        "summary": "Hr employees records delete",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "employeesRecordsDelete"
      }
    },
    "/v1/hr/employees/records/list": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employeeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "education",
                              "qualification",
                              "certificate",
                              "training"
                            ]
                          },
                          "title": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "institution": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "issuedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "validUntil": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "employeeId",
                          "type",
                          "title",
                          "institution",
                          "issuedAt",
                          "validUntil",
                          "fileId",
                          "notes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrEmployeesRecordsList",
        "summary": "Hr employees records list",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "employeesRecordsList"
      }
    },
    "/v1/hr/employees/attachments/list": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "employeeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "employeeId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "mimeType": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sizeBytes": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "fileName",
                          "mimeType",
                          "sizeBytes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrEmployeesAttachmentsList",
        "summary": "Hr employees attachments list",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "employeesAttachmentsList"
      }
    },
    "/v1/hr/timesheets/generate": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  },
                  "employeeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "generated": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    }
                  },
                  "required": [
                    "generated"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrTimesheetsGenerate",
        "summary": "Hr timesheets generate",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "timesheetsGenerate"
      }
    },
    "/v1/hr/timesheets/upsert": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "employeeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  },
                  "days": {
                    "maxItems": 31,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "day": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 31,
                          "format": "int64"
                        },
                        "hours": {
                          "type": "string",
                          "pattern": "^\\d{1,2}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "work",
                            "business_trip",
                            "vacation",
                            "sick",
                            "holiday",
                            "unpaid"
                          ]
                        }
                      },
                      "required": [
                        "day",
                        "hours",
                        "type"
                      ]
                    }
                  }
                },
                "required": [
                  "employeeId",
                  "year",
                  "month",
                  "days"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "month": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "days": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "day": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 31,
                            "format": "int64"
                          },
                          "hours": {
                            "type": "string",
                            "pattern": "^\\d{1,2}(\\.\\d{1,2})?$",
                            "example": "121.00"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "work",
                              "business_trip",
                              "vacation",
                              "sick",
                              "holiday",
                              "unpaid"
                            ]
                          }
                        },
                        "required": [
                          "day",
                          "hours",
                          "type"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "workedDays": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "workedHours": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "employeeId",
                    "employeeName",
                    "year",
                    "month",
                    "days",
                    "workedDays",
                    "workedHours",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrTimesheetsUpsert",
        "summary": "Hr timesheets upsert",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "timesheetsUpsert"
      }
    },
    "/v1/hr/timesheets/get": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "employeeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  }
                },
                "required": [
                  "employeeId",
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "month": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "days": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "day": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 31,
                            "format": "int64"
                          },
                          "hours": {
                            "type": "string",
                            "pattern": "^\\d{1,2}(\\.\\d{1,2})?$",
                            "example": "121.00"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "work",
                              "business_trip",
                              "vacation",
                              "sick",
                              "holiday",
                              "unpaid"
                            ]
                          }
                        },
                        "required": [
                          "day",
                          "hours",
                          "type"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "workedDays": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "workedHours": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "employeeId",
                    "employeeName",
                    "year",
                    "month",
                    "days",
                    "workedDays",
                    "workedHours",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrTimesheetsGet",
        "summary": "Hr timesheets get",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "timesheetsGet"
      }
    },
    "/v1/hr/timesheets/list": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  }
                },
                "required": [
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employeeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employeeName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "year": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "month": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "days": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "day": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 31,
                                  "format": "int64"
                                },
                                "hours": {
                                  "type": "string",
                                  "pattern": "^\\d{1,2}(\\.\\d{1,2})?$",
                                  "example": "121.00"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "work",
                                    "business_trip",
                                    "vacation",
                                    "sick",
                                    "holiday",
                                    "unpaid"
                                  ]
                                }
                              },
                              "required": [
                                "day",
                                "hours",
                                "type"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "workedDays": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "workedHours": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "employeeId",
                          "employeeName",
                          "year",
                          "month",
                          "days",
                          "workedDays",
                          "workedHours",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrTimesheetsList",
        "summary": "Hr timesheets list",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "timesheetsList"
      }
    },
    "/v1/hr/timesheets/delete": {
      "post": {
        "tags": [
          "hr"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "hrTimesheetsDelete",
        "summary": "Hr timesheets delete",
        "x-fern-sdk-group-name": "hr",
        "x-fern-sdk-method-name": "timesheetsDelete"
      }
    },
    "/v1/fleet/vehicles/create": {
      "post": {
        "tags": [
          "fleet"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "plateNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "make": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "model": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "year": {
                    "type": "integer",
                    "minimum": 1950,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "vin": {
                    "type": "string",
                    "maxLength": 30,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "fuelType": {
                    "type": "string",
                    "enum": [
                      "petrol",
                      "diesel",
                      "electric",
                      "hybrid",
                      "lpg",
                      "other"
                    ]
                  },
                  "acquisitionDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "marketValue": {
                    "default": "0",
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "fixedAssetId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "technicalInspectionDue": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "insuranceDue": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documents": {
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "ref": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "name",
                        "ref"
                      ]
                    }
                  }
                },
                "required": [
                  "plateNumber",
                  "make",
                  "model"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "plateNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "make": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "model": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "year": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "vin": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fuelType": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "acquisitionDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "marketValue": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fixedAssetId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "technicalInspectionDue": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "insuranceDue": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "sold",
                        "scrapped"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documents": {
                      "nullable": true,
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ref": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name",
                          "ref"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "currentAssignment": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "employeeId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "employeeName": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "fromDate": {
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "privateUse": {
                          "type": "boolean"
                        },
                        "employerPaysFuel": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "id",
                        "employeeId",
                        "employeeName",
                        "fromDate",
                        "privateUse",
                        "employerPaysFuel"
                      ],
                      "additionalProperties": false
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "plateNumber",
                    "make",
                    "model",
                    "year",
                    "vin",
                    "fuelType",
                    "acquisitionDate",
                    "marketValue",
                    "fixedAssetId",
                    "technicalInspectionDue",
                    "insuranceDue",
                    "status",
                    "notes",
                    "documents",
                    "currentAssignment",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "fleetVehiclesCreate",
        "summary": "Fleet vehicles create",
        "x-fern-sdk-group-name": "fleet",
        "x-fern-sdk-method-name": "vehiclesCreate"
      }
    },
    "/v1/fleet/vehicles/update": {
      "post": {
        "tags": [
          "fleet"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "plateNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "make": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "model": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "year": {
                    "nullable": true,
                    "type": "integer",
                    "minimum": 1950,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "vin": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 30,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "fuelType": {
                    "nullable": true,
                    "type": "string",
                    "enum": [
                      "petrol",
                      "diesel",
                      "electric",
                      "hybrid",
                      "lpg",
                      "other"
                    ]
                  },
                  "acquisitionDate": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "marketValue": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "fixedAssetId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "technicalInspectionDue": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "insuranceDue": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "active",
                      "sold",
                      "scrapped"
                    ]
                  },
                  "notes": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "plateNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "make": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "model": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "year": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "vin": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fuelType": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "acquisitionDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "marketValue": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fixedAssetId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "technicalInspectionDue": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "insuranceDue": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "sold",
                        "scrapped"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documents": {
                      "nullable": true,
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ref": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name",
                          "ref"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "currentAssignment": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "employeeId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "employeeName": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "fromDate": {
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "privateUse": {
                          "type": "boolean"
                        },
                        "employerPaysFuel": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "id",
                        "employeeId",
                        "employeeName",
                        "fromDate",
                        "privateUse",
                        "employerPaysFuel"
                      ],
                      "additionalProperties": false
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "plateNumber",
                    "make",
                    "model",
                    "year",
                    "vin",
                    "fuelType",
                    "acquisitionDate",
                    "marketValue",
                    "fixedAssetId",
                    "technicalInspectionDue",
                    "insuranceDue",
                    "status",
                    "notes",
                    "documents",
                    "currentAssignment",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "fleetVehiclesUpdate",
        "summary": "Fleet vehicles update",
        "x-fern-sdk-group-name": "fleet",
        "x-fern-sdk-method-name": "vehiclesUpdate"
      }
    },
    "/v1/fleet/vehicles/get": {
      "post": {
        "tags": [
          "fleet"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "plateNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "make": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "model": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "year": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "vin": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fuelType": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "acquisitionDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "marketValue": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fixedAssetId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "technicalInspectionDue": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "insuranceDue": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "sold",
                        "scrapped"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documents": {
                      "nullable": true,
                      "maxItems": 50,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ref": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name",
                          "ref"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "currentAssignment": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "employeeId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "employeeName": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "fromDate": {
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "privateUse": {
                          "type": "boolean"
                        },
                        "employerPaysFuel": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "id",
                        "employeeId",
                        "employeeName",
                        "fromDate",
                        "privateUse",
                        "employerPaysFuel"
                      ],
                      "additionalProperties": false
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "plateNumber",
                    "make",
                    "model",
                    "year",
                    "vin",
                    "fuelType",
                    "acquisitionDate",
                    "marketValue",
                    "fixedAssetId",
                    "technicalInspectionDue",
                    "insuranceDue",
                    "status",
                    "notes",
                    "documents",
                    "currentAssignment",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "fleetVehiclesGet",
        "summary": "Fleet vehicles get",
        "x-fern-sdk-group-name": "fleet",
        "x-fern-sdk-method-name": "vehiclesGet"
      }
    },
    "/v1/fleet/vehicles/list": {
      "post": {
        "tags": [
          "fleet"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "plateNumber": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "make": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "model": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "year": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "vin": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fuelType": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "acquisitionDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "marketValue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fixedAssetId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "technicalInspectionDue": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "insuranceDue": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "sold",
                              "scrapped"
                            ]
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documents": {
                            "nullable": true,
                            "maxItems": 50,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 200,
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "ref": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 500,
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "name",
                                "ref"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "currentAssignment": {
                            "nullable": true,
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "employeeId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "employeeName": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "fromDate": {
                                "type": "string",
                                "format": "date",
                                "example": "2026-07-01"
                              },
                              "privateUse": {
                                "type": "boolean"
                              },
                              "employerPaysFuel": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "id",
                              "employeeId",
                              "employeeName",
                              "fromDate",
                              "privateUse",
                              "employerPaysFuel"
                            ],
                            "additionalProperties": false
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "plateNumber",
                          "make",
                          "model",
                          "year",
                          "vin",
                          "fuelType",
                          "acquisitionDate",
                          "marketValue",
                          "fixedAssetId",
                          "technicalInspectionDue",
                          "insuranceDue",
                          "status",
                          "notes",
                          "documents",
                          "currentAssignment",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "fleetVehiclesList",
        "summary": "Fleet vehicles list",
        "x-fern-sdk-group-name": "fleet",
        "x-fern-sdk-method-name": "vehiclesList"
      }
    },
    "/v1/fleet/assignments/create": {
      "post": {
        "tags": [
          "fleet"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "vehicleId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "employeeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "privateUse": {
                    "default": false,
                    "type": "boolean"
                  },
                  "employerPaysFuel": {
                    "default": false,
                    "type": "boolean"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "vehicleId",
                  "employeeId",
                  "fromDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vehicleId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "plateNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "privateUse": {
                      "type": "boolean"
                    },
                    "employerPaysFuel": {
                      "type": "boolean"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "vehicleId",
                    "plateNumber",
                    "employeeId",
                    "employeeName",
                    "fromDate",
                    "toDate",
                    "privateUse",
                    "employerPaysFuel",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "fleetAssignmentsCreate",
        "summary": "Fleet assignments create",
        "x-fern-sdk-group-name": "fleet",
        "x-fern-sdk-method-name": "assignmentsCreate"
      }
    },
    "/v1/fleet/assignments/end": {
      "post": {
        "tags": [
          "fleet"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "id",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vehicleId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "plateNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "privateUse": {
                      "type": "boolean"
                    },
                    "employerPaysFuel": {
                      "type": "boolean"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "vehicleId",
                    "plateNumber",
                    "employeeId",
                    "employeeName",
                    "fromDate",
                    "toDate",
                    "privateUse",
                    "employerPaysFuel",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "fleetAssignmentsEnd",
        "summary": "Fleet assignments end",
        "x-fern-sdk-group-name": "fleet",
        "x-fern-sdk-method-name": "assignmentsEnd"
      }
    },
    "/v1/fleet/assignments/list": {
      "post": {
        "tags": [
          "fleet"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vehicleId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "plateNumber": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employeeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employeeName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fromDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "toDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "privateUse": {
                            "type": "boolean"
                          },
                          "employerPaysFuel": {
                            "type": "boolean"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "vehicleId",
                          "plateNumber",
                          "employeeId",
                          "employeeName",
                          "fromDate",
                          "toDate",
                          "privateUse",
                          "employerPaysFuel",
                          "notes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "fleetAssignmentsList",
        "summary": "Fleet assignments list",
        "x-fern-sdk-group-name": "fleet",
        "x-fern-sdk-method-name": "assignmentsList"
      }
    },
    "/v1/fleet/natura/preview": {
      "post": {
        "tags": [
          "fleet"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  }
                },
                "required": [
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "employeeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employeeName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vehicleId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "plateNumber": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "make": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "model": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "marketValue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employerPaysFuel": {
                            "type": "boolean"
                          },
                          "ratePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "employeeId",
                          "employeeName",
                          "vehicleId",
                          "plateNumber",
                          "make",
                          "model",
                          "marketValue",
                          "employerPaysFuel",
                          "ratePercent",
                          "amount"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "total": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "rows",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "fleetNaturaPreview",
        "summary": "Fleet natura preview",
        "x-fern-sdk-group-name": "fleet",
        "x-fern-sdk-method-name": "naturaPreview"
      }
    },
    "/v1/payroll/departments/create": {
      "post": {
        "tags": [
          "payroll"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "code",
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "payrollDepartmentsCreate",
        "summary": "Payroll departments create",
        "x-fern-sdk-group-name": "payroll",
        "x-fern-sdk-method-name": "departmentsCreate"
      }
    },
    "/v1/payroll/departments/list": {
      "post": {
        "tags": [
          "payroll"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "code",
                          "name"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "payrollDepartmentsList",
        "summary": "Payroll departments list",
        "x-fern-sdk-group-name": "payroll",
        "x-fern-sdk-method-name": "departmentsList"
      }
    },
    "/v1/payroll/schedules/create": {
      "post": {
        "tags": [
          "payroll"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "hoursPerWeek": {
                    "default": "40",
                    "type": "string",
                    "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  }
                },
                "required": [
                  "code",
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "hoursPerWeek": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "hoursPerWeek"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "payrollSchedulesCreate",
        "summary": "Payroll schedules create",
        "x-fern-sdk-group-name": "payroll",
        "x-fern-sdk-method-name": "schedulesCreate"
      }
    },
    "/v1/payroll/schedules/list": {
      "post": {
        "tags": [
          "payroll"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "hoursPerWeek": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "code",
                          "name",
                          "hoursPerWeek"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "payrollSchedulesList",
        "summary": "Payroll schedules list",
        "x-fern-sdk-group-name": "payroll",
        "x-fern-sdk-method-name": "schedulesList"
      }
    },
    "/v1/payroll/calc": {
      "post": {
        "summary": "Calculate one employee payment under the rules of the company country",
        "tags": [
          "payroll"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "taxableBase": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "applyAllowance": {
                    "default": true,
                    "type": "boolean"
                  },
                  "allowanceOverride": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "pensionAccumulation": {
                    "default": false,
                    "type": "boolean"
                  },
                  "fixedTerm": {
                    "default": false,
                    "type": "boolean"
                  },
                  "benefitInKind": {
                    "default": "0.00",
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "options": {
                    "default": {},
                    "type": "object",
                    "additionalProperties": {
                      "type": "string",
                      "maxLength": 200,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "maxProperties": 100
                  }
                },
                "required": [
                  "taxableBase",
                  "date"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "countryCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "taxAllowance": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "incomeTax": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeContributions": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employerContributions": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "components": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "allowance",
                              "employee_tax",
                              "employee_contribution",
                              "employer_contribution",
                              "employer_payment"
                            ]
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "rate": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "base": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "code",
                          "kind",
                          "amount"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "net": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "countryCode",
                    "taxAllowance",
                    "incomeTax",
                    "employeeContributions",
                    "employerContributions",
                    "components",
                    "net"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "payrollCalc",
        "x-fern-sdk-group-name": "payroll",
        "x-fern-sdk-method-name": "calc"
      }
    },
    "/v1/payroll/runs/create": {
      "post": {
        "tags": [
          "payroll"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  },
                  "month": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  },
                  "includeNatura": {
                    "default": true,
                    "type": "boolean"
                  },
                  "grossOverrides": {
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "employeeId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "gross": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        }
                      },
                      "required": [
                        "employeeId",
                        "gross"
                      ]
                    }
                  },
                  "lines": {
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "employeeId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "gross": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        },
                        "additions": {
                          "default": [],
                          "maxItems": 20,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "amount": {
                                "type": "string",
                                "pattern": "^\\d{1,15}(\\.\\d{1,2})?$",
                                "example": "121.00"
                              },
                              "taxable": {
                                "default": true,
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "name",
                              "amount"
                            ]
                          }
                        },
                        "deductions": {
                          "default": [],
                          "maxItems": 20,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "amount": {
                                "type": "string",
                                "pattern": "^\\d{1,15}(\\.\\d{1,2})?$",
                                "example": "121.00"
                              }
                            },
                            "required": [
                              "name",
                              "amount"
                            ]
                          }
                        }
                      },
                      "required": [
                        "employeeId"
                      ]
                    }
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "year",
                  "month"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "month": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "countryCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "approved"
                      ]
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "taxAllowanceTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "incomeTaxTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeContributionsTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employerContributionsTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "componentTotals": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "allowance",
                              "employee_tax",
                              "employee_contribution",
                              "employer_contribution",
                              "employer_payment"
                            ]
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "rate": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "base": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "code",
                          "kind",
                          "amount"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "approvedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employeeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "contractId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employeeName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "gross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "natura": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "additions": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "amount": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "taxable": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "name",
                                "amount",
                                "taxable"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "deductions": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "amount": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "name",
                                "amount"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "taxableBase": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "taxAllowance": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "incomeTax": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employeeContributions": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employerContributions": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "components": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "code": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "allowance",
                                    "employee_tax",
                                    "employee_contribution",
                                    "employer_contribution",
                                    "employer_payment"
                                  ]
                                },
                                "amount": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "rate": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "base": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "code",
                                "kind",
                                "amount"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "net": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "daysWorked": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "hoursWorked": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "registeredDays": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "averageHourlyEarnings": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "employeeId",
                          "contractId",
                          "employeeName",
                          "gross",
                          "natura",
                          "additions",
                          "deductions",
                          "taxableBase",
                          "taxAllowance",
                          "incomeTax",
                          "employeeContributions",
                          "employerContributions",
                          "components",
                          "net",
                          "daysWorked",
                          "hoursWorked",
                          "registeredDays",
                          "averageHourlyEarnings"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "year",
                    "month",
                    "countryCode",
                    "status",
                    "grossTotal",
                    "taxAllowanceTotal",
                    "incomeTaxTotal",
                    "employeeContributionsTotal",
                    "employerContributionsTotal",
                    "componentTotals",
                    "netTotal",
                    "journalTransactionId",
                    "notes",
                    "warnings",
                    "createdAt",
                    "approvedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "payrollRunsCreate",
        "summary": "Payroll runs create",
        "x-fern-sdk-group-name": "payroll",
        "x-fern-sdk-method-name": "runsCreate"
      }
    },
    "/v1/payroll/runs/get": {
      "post": {
        "tags": [
          "payroll"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "month": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "countryCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "approved"
                      ]
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "taxAllowanceTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "incomeTaxTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeContributionsTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employerContributionsTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "componentTotals": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "allowance",
                              "employee_tax",
                              "employee_contribution",
                              "employer_contribution",
                              "employer_payment"
                            ]
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "rate": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "base": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "code",
                          "kind",
                          "amount"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "approvedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employeeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "contractId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employeeName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "gross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "natura": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "additions": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "amount": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "taxable": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "name",
                                "amount",
                                "taxable"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "deductions": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "amount": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "name",
                                "amount"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "taxableBase": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "taxAllowance": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "incomeTax": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employeeContributions": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employerContributions": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "components": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "code": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "allowance",
                                    "employee_tax",
                                    "employee_contribution",
                                    "employer_contribution",
                                    "employer_payment"
                                  ]
                                },
                                "amount": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "rate": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "base": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "code",
                                "kind",
                                "amount"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "net": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "daysWorked": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "hoursWorked": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "registeredDays": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "averageHourlyEarnings": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "employeeId",
                          "contractId",
                          "employeeName",
                          "gross",
                          "natura",
                          "additions",
                          "deductions",
                          "taxableBase",
                          "taxAllowance",
                          "incomeTax",
                          "employeeContributions",
                          "employerContributions",
                          "components",
                          "net",
                          "daysWorked",
                          "hoursWorked",
                          "registeredDays",
                          "averageHourlyEarnings"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "year",
                    "month",
                    "countryCode",
                    "status",
                    "grossTotal",
                    "taxAllowanceTotal",
                    "incomeTaxTotal",
                    "employeeContributionsTotal",
                    "employerContributionsTotal",
                    "componentTotals",
                    "netTotal",
                    "journalTransactionId",
                    "notes",
                    "warnings",
                    "createdAt",
                    "approvedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "payrollRunsGet",
        "summary": "Payroll runs get",
        "x-fern-sdk-group-name": "payroll",
        "x-fern-sdk-method-name": "runsGet"
      }
    },
    "/v1/payroll/runs/list": {
      "post": {
        "tags": [
          "payroll"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "year": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "month": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "countryCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "approved"
                            ]
                          },
                          "grossTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "taxAllowanceTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "incomeTaxTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employeeContributionsTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employerContributionsTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "componentTotals": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "code": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "allowance",
                                    "employee_tax",
                                    "employee_contribution",
                                    "employer_contribution",
                                    "employer_payment"
                                  ]
                                },
                                "amount": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "rate": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "base": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "code",
                                "kind",
                                "amount"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "netTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "journalTransactionId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "warnings": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "approvedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "year",
                          "month",
                          "countryCode",
                          "status",
                          "grossTotal",
                          "taxAllowanceTotal",
                          "incomeTaxTotal",
                          "employeeContributionsTotal",
                          "employerContributionsTotal",
                          "componentTotals",
                          "netTotal",
                          "journalTransactionId",
                          "notes",
                          "warnings",
                          "createdAt",
                          "approvedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "payrollRunsList",
        "summary": "Payroll runs list",
        "x-fern-sdk-group-name": "payroll",
        "x-fern-sdk-method-name": "runsList"
      }
    },
    "/v1/payroll/lines/attendance": {
      "post": {
        "summary": "Record the time a person worked in a payroll line",
        "tags": [
          "payroll"
        ],
        "description": "The days and hours worked, the days on the register and the average hourly earnings that some countries report per employment. The Czech monthly employer report asks for all four. They can be set while the run is a draft.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "daysWorked": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,4}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "hoursWorked": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,6}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "registeredDays": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,4}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "averageHourlyEarnings": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contractId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "gross": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "natura": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "additions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "taxable": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "name",
                          "amount",
                          "taxable"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "deductions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "name",
                          "amount"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "taxableBase": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "taxAllowance": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "incomeTax": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeContributions": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employerContributions": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "components": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "allowance",
                              "employee_tax",
                              "employee_contribution",
                              "employer_contribution",
                              "employer_payment"
                            ]
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "rate": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "base": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "code",
                          "kind",
                          "amount"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "net": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "daysWorked": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "hoursWorked": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "registeredDays": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "averageHourlyEarnings": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "employeeId",
                    "contractId",
                    "employeeName",
                    "gross",
                    "natura",
                    "additions",
                    "deductions",
                    "taxableBase",
                    "taxAllowance",
                    "incomeTax",
                    "employeeContributions",
                    "employerContributions",
                    "components",
                    "net",
                    "daysWorked",
                    "hoursWorked",
                    "registeredDays",
                    "averageHourlyEarnings"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "payrollLinesAttendance",
        "x-fern-sdk-group-name": "payroll",
        "x-fern-sdk-method-name": "linesAttendance"
      }
    },
    "/v1/payroll/runs/approve": {
      "post": {
        "tags": [
          "payroll"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "wageAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "employerAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "payableAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "gpmAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "sodraAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "employerSocialAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "deductionAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "month": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "countryCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "approved"
                      ]
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "taxAllowanceTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "incomeTaxTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeContributionsTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employerContributionsTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "componentTotals": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "allowance",
                              "employee_tax",
                              "employee_contribution",
                              "employer_contribution",
                              "employer_payment"
                            ]
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "rate": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "base": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "code",
                          "kind",
                          "amount"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "approvedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "year",
                    "month",
                    "countryCode",
                    "status",
                    "grossTotal",
                    "taxAllowanceTotal",
                    "incomeTaxTotal",
                    "employeeContributionsTotal",
                    "employerContributionsTotal",
                    "componentTotals",
                    "netTotal",
                    "journalTransactionId",
                    "notes",
                    "warnings",
                    "createdAt",
                    "approvedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "payrollRunsApprove",
        "summary": "Payroll runs approve",
        "x-fern-sdk-group-name": "payroll",
        "x-fern-sdk-method-name": "runsApprove"
      }
    },
    "/v1/payroll/runs/cancel": {
      "post": {
        "tags": [
          "payroll"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "payrollRunsCancel",
        "summary": "Payroll runs cancel",
        "x-fern-sdk-group-name": "payroll",
        "x-fern-sdk-method-name": "runsCancel"
      }
    },
    "/v1/payroll/payments/export": {
      "post": {
        "tags": [
          "payroll"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "runId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "bankAccountId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "executionDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "locale": {
                    "type": "string",
                    "enum": [
                      "en",
                      "lt",
                      "de"
                    ]
                  }
                },
                "required": [
                  "runId",
                  "bankAccountId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "messageId": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transactionCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "controlSum": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "messageId",
                    "fileName",
                    "transactionCount",
                    "controlSum",
                    "xml"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "payrollPaymentsExport",
        "summary": "Payroll payments export",
        "x-fern-sdk-group-name": "payroll",
        "x-fern-sdk-method-name": "paymentsExport"
      }
    },
    "/v1/agreements/types/create": {
      "post": {
        "tags": [
          "agreements"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "code",
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "agreementsTypesCreate",
        "summary": "Agreements types create",
        "x-fern-sdk-group-name": "agreements",
        "x-fern-sdk-method-name": "typesCreate"
      }
    },
    "/v1/agreements/types/list": {
      "post": {
        "tags": [
          "agreements"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "code",
                          "name"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "agreementsTypesList",
        "summary": "Agreements types list",
        "x-fern-sdk-group-name": "agreements",
        "x-fern-sdk-method-name": "typesList"
      }
    },
    "/v1/agreements/agreements/create": {
      "post": {
        "tags": [
          "agreements"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "typeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "customer",
                      "supplier",
                      "employment",
                      "bank",
                      "lease",
                      "insurance",
                      "other"
                    ]
                  },
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "employeeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "bankAccountId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "number": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "startDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "endDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "autoRenew": {
                    "default": false,
                    "type": "boolean"
                  },
                  "value": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "billingPeriod": {
                    "type": "string",
                    "enum": [
                      "monthly",
                      "quarterly",
                      "annual"
                    ]
                  },
                  "currency": {
                    "default": "EUR",
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "status": {
                    "default": "active",
                    "type": "string",
                    "enum": [
                      "draft",
                      "active",
                      "expired",
                      "terminated"
                    ]
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documentRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "items": {
                    "default": [],
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "itemId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "quantity": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "unitPrice": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "vatRatePercent": {
                          "type": "string",
                          "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        }
                      },
                      "required": [
                        "description"
                      ]
                    }
                  }
                },
                "required": [
                  "number",
                  "startDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "typeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "customer",
                        "supplier",
                        "employment",
                        "bank",
                        "lease",
                        "insurance",
                        "other"
                      ]
                    },
                    "partnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankAccountId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "number": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "startDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "endDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "autoRenew": {
                      "type": "boolean"
                    },
                    "value": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "billingPeriod": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "monthly",
                        "quarterly",
                        "annual"
                      ]
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "active",
                        "expired",
                        "terminated"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPrice": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "quantity",
                          "unitPrice",
                          "vatRatePercent"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "typeId",
                    "kind",
                    "partnerId",
                    "employeeId",
                    "bankAccountId",
                    "number",
                    "name",
                    "startDate",
                    "endDate",
                    "autoRenew",
                    "value",
                    "billingPeriod",
                    "currency",
                    "status",
                    "notes",
                    "documentRef",
                    "createdAt",
                    "items"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "agreementsAgreementsCreate",
        "summary": "Agreements agreements create",
        "x-fern-sdk-group-name": "agreements",
        "x-fern-sdk-method-name": "agreementsCreate"
      }
    },
    "/v1/agreements/agreements/get": {
      "post": {
        "tags": [
          "agreements"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "typeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "customer",
                        "supplier",
                        "employment",
                        "bank",
                        "lease",
                        "insurance",
                        "other"
                      ]
                    },
                    "partnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankAccountId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "number": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "startDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "endDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "autoRenew": {
                      "type": "boolean"
                    },
                    "value": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "billingPeriod": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "monthly",
                        "quarterly",
                        "annual"
                      ]
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "active",
                        "expired",
                        "terminated"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPrice": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "quantity",
                          "unitPrice",
                          "vatRatePercent"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "typeId",
                    "kind",
                    "partnerId",
                    "employeeId",
                    "bankAccountId",
                    "number",
                    "name",
                    "startDate",
                    "endDate",
                    "autoRenew",
                    "value",
                    "billingPeriod",
                    "currency",
                    "status",
                    "notes",
                    "documentRef",
                    "createdAt",
                    "items"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "agreementsAgreementsGet",
        "summary": "Agreements agreements get",
        "x-fern-sdk-group-name": "agreements",
        "x-fern-sdk-method-name": "agreementsGet"
      }
    },
    "/v1/agreements/agreements/update": {
      "post": {
        "tags": [
          "agreements"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "typeId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "customer",
                      "supplier",
                      "employment",
                      "bank",
                      "lease",
                      "insurance",
                      "other"
                    ]
                  },
                  "name": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "endDate": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "autoRenew": {
                    "type": "boolean"
                  },
                  "value": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "billingPeriod": {
                    "nullable": true,
                    "type": "string",
                    "enum": [
                      "monthly",
                      "quarterly",
                      "annual"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "draft",
                      "active",
                      "expired",
                      "terminated"
                    ]
                  },
                  "notes": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documentRef": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "typeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "customer",
                        "supplier",
                        "employment",
                        "bank",
                        "lease",
                        "insurance",
                        "other"
                      ]
                    },
                    "partnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankAccountId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "number": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "startDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "endDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "autoRenew": {
                      "type": "boolean"
                    },
                    "value": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "billingPeriod": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "monthly",
                        "quarterly",
                        "annual"
                      ]
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "active",
                        "expired",
                        "terminated"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPrice": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "quantity",
                          "unitPrice",
                          "vatRatePercent"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "typeId",
                    "kind",
                    "partnerId",
                    "employeeId",
                    "bankAccountId",
                    "number",
                    "name",
                    "startDate",
                    "endDate",
                    "autoRenew",
                    "value",
                    "billingPeriod",
                    "currency",
                    "status",
                    "notes",
                    "documentRef",
                    "createdAt",
                    "items"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "agreementsAgreementsUpdate",
        "summary": "Agreements agreements update",
        "x-fern-sdk-group-name": "agreements",
        "x-fern-sdk-method-name": "agreementsUpdate"
      }
    },
    "/v1/agreements/agreements/delete": {
      "post": {
        "tags": [
          "agreements"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "agreementsAgreementsDelete",
        "summary": "Agreements agreements delete",
        "x-fern-sdk-group-name": "agreements",
        "x-fern-sdk-method-name": "agreementsDelete"
      }
    },
    "/v1/agreements/agreements/list": {
      "post": {
        "tags": [
          "agreements"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "typeId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "customer",
                              "supplier",
                              "employment",
                              "bank",
                              "lease",
                              "insurance",
                              "other"
                            ]
                          },
                          "partnerId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employeeId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "bankAccountId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "number": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "startDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "endDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "autoRenew": {
                            "type": "boolean"
                          },
                          "value": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "billingPeriod": {
                            "nullable": true,
                            "type": "string",
                            "enum": [
                              "monthly",
                              "quarterly",
                              "annual"
                            ]
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "active",
                              "expired",
                              "terminated"
                            ]
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentRef": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "partnerName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "typeId",
                          "kind",
                          "partnerId",
                          "employeeId",
                          "bankAccountId",
                          "number",
                          "name",
                          "startDate",
                          "endDate",
                          "autoRenew",
                          "value",
                          "billingPeriod",
                          "currency",
                          "status",
                          "notes",
                          "documentRef",
                          "createdAt",
                          "partnerName"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "agreementsAgreementsList",
        "summary": "Agreements agreements list",
        "x-fern-sdk-group-name": "agreements",
        "x-fern-sdk-method-name": "agreementsList"
      }
    },
    "/v1/agreements/agreements/generate-invoice": {
      "post": {
        "tags": [
          "agreements"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "asOfDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "invoiceId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodStart": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodEnd": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "renewedEndDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    }
                  },
                  "required": [
                    "invoiceId",
                    "periodStart",
                    "periodEnd",
                    "renewedEndDate"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "agreementsAgreementsGenerateInvoice",
        "summary": "Agreements agreements generate invoice",
        "x-fern-sdk-group-name": "agreements",
        "x-fern-sdk-method-name": "agreementsGenerateInvoice"
      }
    },
    "/v1/agreements/agreements/billing/run": {
      "post": {
        "tags": [
          "agreements"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "asOfDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "generated": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "agreementId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoiceId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "periodStart": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "periodEnd": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "agreementId",
                          "invoiceId",
                          "periodStart",
                          "periodEnd"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "expired": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64,
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "agreementId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "message": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "agreementId",
                          "message"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "generated",
                    "expired",
                    "errors"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "agreementsAgreementsBillingRun",
        "summary": "Agreements agreements billing run",
        "x-fern-sdk-group-name": "agreements",
        "x-fern-sdk-method-name": "agreementsBillingRun"
      }
    },
    "/v1/agreements/insurance-policies/create": {
      "post": {
        "tags": [
          "agreements"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "insurerPartnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "policyNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "insuredObject": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "premium": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "currency": {
                    "default": "EUR",
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "policyNumber",
                  "insuredObject",
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "insurerPartnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "policyNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "insuredObject": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "premium": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "insurerPartnerId",
                    "policyNumber",
                    "insuredObject",
                    "fromDate",
                    "toDate",
                    "premium",
                    "currency",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "agreementsInsurancePoliciesCreate",
        "summary": "Agreements insurance policies create",
        "x-fern-sdk-group-name": "agreements",
        "x-fern-sdk-method-name": "insurancePoliciesCreate"
      }
    },
    "/v1/agreements/insurance-policies/list": {
      "post": {
        "tags": [
          "agreements"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "insurerPartnerId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "policyNumber": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "insuredObject": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fromDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "toDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "premium": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "insurerPartnerId",
                          "policyNumber",
                          "insuredObject",
                          "fromDate",
                          "toDate",
                          "premium",
                          "currency",
                          "notes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "agreementsInsurancePoliciesList",
        "summary": "Agreements insurance policies list",
        "x-fern-sdk-group-name": "agreements",
        "x-fern-sdk-method-name": "insurancePoliciesList"
      }
    },
    "/v1/agreements/insurance-policies/delete": {
      "post": {
        "tags": [
          "agreements"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "agreementsInsurancePoliciesDelete",
        "summary": "Agreements insurance policies delete",
        "x-fern-sdk-group-name": "agreements",
        "x-fern-sdk-method-name": "insurancePoliciesDelete"
      }
    },
    "/v1/inventory/settings/get": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "negativeStockPolicy": {
                      "type": "string",
                      "enum": [
                        "reject",
                        "allow"
                      ]
                    }
                  },
                  "required": [
                    "negativeStockPolicy"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventorySettingsGet",
        "summary": "Inventory settings get",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "settingsGet"
      }
    },
    "/v1/inventory/settings/update": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "negativeStockPolicy": {
                    "type": "string",
                    "enum": [
                      "reject",
                      "allow"
                    ]
                  }
                },
                "required": [
                  "negativeStockPolicy"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "negativeStockPolicy": {
                      "type": "string",
                      "enum": [
                        "reject",
                        "allow"
                      ]
                    }
                  },
                  "required": [
                    "negativeStockPolicy"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventorySettingsUpdate",
        "summary": "Inventory settings update",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "settingsUpdate"
      }
    },
    "/v1/inventory/warehouses/create": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isDefault": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "code",
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isDefault": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "isDefault",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventoryWarehousesCreate",
        "summary": "Inventory warehouses create",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "warehousesCreate"
      }
    },
    "/v1/inventory/warehouses/list": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isDefault": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "code",
                          "name",
                          "isDefault",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventoryWarehousesList",
        "summary": "Inventory warehouses list",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "warehousesList"
      }
    },
    "/v1/inventory/stock/receive": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "itemId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "quantity": {
                    "type": "string",
                    "pattern": "^\\d{1,11}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "unitCost": {
                    "type": "string",
                    "pattern": "^\\d{1,13}(\\.\\d{1,6})?$",
                    "example": "121.000000"
                  },
                  "lotNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "expiryDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "warehouseId",
                  "itemId",
                  "date",
                  "quantity",
                  "unitCost"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "movementId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "totalCost": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "movementId",
                    "totalCost"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventoryStockReceive",
        "summary": "Inventory stock receive",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "stockReceive"
      }
    },
    "/v1/inventory/stock/write-off": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "itemId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "quantity": {
                    "type": "string",
                    "pattern": "^\\d{1,11}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "lotNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "expenseAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "inventoryAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "warehouseId",
                  "itemId",
                  "date",
                  "quantity"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "movementId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "totalCost": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "movementId",
                    "totalCost",
                    "journalTransactionId"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventoryStockWriteOff",
        "summary": "Inventory stock write off",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "stockWriteOff"
      }
    },
    "/v1/inventory/stock/transfer": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromWarehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "toWarehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "itemId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "quantity": {
                    "type": "string",
                    "pattern": "^\\d{1,11}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "lotNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "fromWarehouseId",
                  "toWarehouseId",
                  "itemId",
                  "date",
                  "quantity"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "outMovementId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "inMovementId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "totalCost": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "outMovementId",
                    "inMovementId",
                    "totalCost"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventoryStockTransfer",
        "summary": "Inventory stock transfer",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "stockTransfer"
      }
    },
    "/v1/inventory/stock/take": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "expenseAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "inventoryAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "lines": {
                    "minItems": 1,
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "itemId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "barcode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "countedQty": {
                          "type": "string",
                          "pattern": "^\\d{1,11}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "unitCost": {
                          "type": "string",
                          "pattern": "^\\d{1,13}(\\.\\d{1,6})?$",
                          "example": "121.000000"
                        },
                        "lotNumber": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "expiryDate": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        }
                      },
                      "required": [
                        "countedQty"
                      ]
                    }
                  }
                },
                "required": [
                  "warehouseId",
                  "date",
                  "lines"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "itemId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "onHand": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "counted": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "difference": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "adjustmentCost": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "itemId",
                          "onHand",
                          "counted",
                          "difference",
                          "adjustmentCost"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "rows",
                    "journalTransactionId"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventoryStockTake",
        "summary": "Inventory stock take",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "stockTake"
      }
    },
    "/v1/inventory/stock/levels": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "itemId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "itemId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "warehouseId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "value": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "itemId",
                          "warehouseId",
                          "quantity",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventoryStockLevels",
        "summary": "Inventory stock levels",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "stockLevels"
      }
    },
    "/v1/inventory/stock/movements/list": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "warehouseId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lotId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "direction": {
                            "type": "string",
                            "enum": [
                              "in",
                              "out"
                            ]
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitCost": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "totalCost": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "remainingQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentType": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "warehouseId",
                          "itemId",
                          "lotId",
                          "date",
                          "direction",
                          "quantity",
                          "unitCost",
                          "totalCost",
                          "remainingQty",
                          "documentType",
                          "documentId",
                          "notes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventoryStockMovementsList",
        "summary": "Inventory stock movements list",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "stockMovementsList"
      }
    },
    "/v1/inventory/lots/list": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lotNumber": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "expiryDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "onHand": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "lotNumber",
                          "expiryDate",
                          "notes",
                          "onHand",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventoryLotsList",
        "summary": "Inventory lots list",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "lotsList"
      }
    },
    "/v1/inventory/lots/get": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "itemId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lotNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "expiryDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "onHand": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "movements": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "warehouseId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lotId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "direction": {
                            "type": "string",
                            "enum": [
                              "in",
                              "out"
                            ]
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitCost": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "totalCost": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "remainingQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentType": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "warehouseId",
                          "itemId",
                          "lotId",
                          "date",
                          "direction",
                          "quantity",
                          "unitCost",
                          "totalCost",
                          "remainingQty",
                          "documentType",
                          "documentId",
                          "notes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "itemId",
                    "lotNumber",
                    "expiryDate",
                    "notes",
                    "onHand",
                    "createdAt",
                    "movements"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventoryLotsGet",
        "summary": "Inventory lots get",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "lotsGet"
      }
    },
    "/v1/inventory/lots/update": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "expiryDate": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "notes": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "itemId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lotNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "expiryDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "onHand": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "itemId",
                    "lotNumber",
                    "expiryDate",
                    "notes",
                    "onHand",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventoryLotsUpdate",
        "summary": "Inventory lots update",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "lotsUpdate"
      }
    },
    "/v1/inventory/landed-costs/create": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "amount": {
                    "type": "string",
                    "pattern": "^\\d{1,13}(\\.\\d{1,6})?$",
                    "example": "121.000000"
                  },
                  "method": {
                    "default": "by_value",
                    "type": "string",
                    "enum": [
                      "by_value",
                      "by_quantity"
                    ]
                  },
                  "goodsReceiptId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "movementIds": {
                    "minItems": 1,
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "sourceInvoiceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "date",
                  "amount"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "amount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "method": {
                      "type": "string",
                      "enum": [
                        "by_value",
                        "by_quantity"
                      ]
                    },
                    "goodsReceiptId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sourceInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "movementId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "allocatedAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "newUnitCost": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "movementId",
                          "allocatedAmount",
                          "newUnitCost"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "amount",
                    "method",
                    "goodsReceiptId",
                    "sourceInvoiceId",
                    "notes",
                    "createdAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventoryLandedCostsCreate",
        "summary": "Inventory landed costs create",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "landedCostsCreate"
      }
    },
    "/v1/inventory/landed-costs/get": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "amount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "method": {
                      "type": "string",
                      "enum": [
                        "by_value",
                        "by_quantity"
                      ]
                    },
                    "goodsReceiptId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sourceInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "movementId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "allocatedAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "newUnitCost": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "movementId",
                          "allocatedAmount",
                          "newUnitCost"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "date",
                    "amount",
                    "method",
                    "goodsReceiptId",
                    "sourceInvoiceId",
                    "notes",
                    "createdAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventoryLandedCostsGet",
        "summary": "Inventory landed costs get",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "landedCostsGet"
      }
    },
    "/v1/inventory/landed-costs/list": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "method": {
                            "type": "string",
                            "enum": [
                              "by_value",
                              "by_quantity"
                            ]
                          },
                          "goodsReceiptId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sourceInvoiceId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "date",
                          "amount",
                          "method",
                          "goodsReceiptId",
                          "sourceInvoiceId",
                          "notes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventoryLandedCostsList",
        "summary": "Inventory landed costs list",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "landedCostsList"
      }
    },
    "/v1/inventory/reorder-rules/create": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "itemId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "minQty": {
                    "type": "string",
                    "pattern": "^\\d{1,11}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "reorderQty": {
                    "type": "string",
                    "pattern": "^\\d{1,11}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "isActive": {
                    "default": true,
                    "type": "boolean"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "itemId",
                  "minQty"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "itemId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "minQty": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "reorderQty": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "itemId",
                    "warehouseId",
                    "minQty",
                    "reorderQty",
                    "isActive",
                    "notes",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventoryReorderRulesCreate",
        "summary": "Inventory reorder rules create",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "reorderRulesCreate"
      }
    },
    "/v1/inventory/reorder-rules/update": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "minQty": {
                    "type": "string",
                    "pattern": "^\\d{1,11}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "reorderQty": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,11}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "isActive": {
                    "type": "boolean"
                  },
                  "notes": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "itemId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "minQty": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "reorderQty": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "itemId",
                    "warehouseId",
                    "minQty",
                    "reorderQty",
                    "isActive",
                    "notes",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventoryReorderRulesUpdate",
        "summary": "Inventory reorder rules update",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "reorderRulesUpdate"
      }
    },
    "/v1/inventory/reorder-rules/delete": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventoryReorderRulesDelete",
        "summary": "Inventory reorder rules delete",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "reorderRulesDelete"
      }
    },
    "/v1/inventory/reorder-rules/list": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "warehouseId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "minQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "reorderQty": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isActive": {
                            "type": "boolean"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "warehouseId",
                          "minQty",
                          "reorderQty",
                          "isActive",
                          "notes",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventoryReorderRulesList",
        "summary": "Inventory reorder rules list",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "reorderRulesList"
      }
    },
    "/v1/inventory/reorder-rules/check": {
      "post": {
        "tags": [
          "inventory"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "ruleId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "warehouseId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "minQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "reorderQty": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "onHand": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "reserved": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "available": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "ruleId",
                          "itemId",
                          "warehouseId",
                          "minQty",
                          "reorderQty",
                          "onHand",
                          "reserved",
                          "available"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "inventoryReorderRulesCheck",
        "summary": "Inventory reorder rules check",
        "x-fern-sdk-group-name": "inventory",
        "x-fern-sdk-method-name": "reorderRulesCheck"
      }
    },
    "/v1/production/work-centers/create": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "costPerHour": {
                    "default": "0",
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "costAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "maintenanceIntervalDays": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 3650,
                    "format": "int64"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "code",
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "costPerHour": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "costAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "maintenanceIntervalDays": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "nextMaintenanceDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "costPerHour",
                    "costAccountCode",
                    "maintenanceIntervalDays",
                    "nextMaintenanceDate",
                    "isActive",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionWorkCentersCreate",
        "summary": "Production work centers create",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "workCentersCreate"
      }
    },
    "/v1/production/work-centers/update": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "costPerHour": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "costAccountCode": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "maintenanceIntervalDays": {
                    "nullable": true,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 3650,
                    "format": "int64"
                  },
                  "isActive": {
                    "type": "boolean"
                  },
                  "notes": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "costPerHour": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "costAccountCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "maintenanceIntervalDays": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "nextMaintenanceDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "costPerHour",
                    "costAccountCode",
                    "maintenanceIntervalDays",
                    "nextMaintenanceDate",
                    "isActive",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionWorkCentersUpdate",
        "summary": "Production work centers update",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "workCentersUpdate"
      }
    },
    "/v1/production/work-centers/list": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costPerHour": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costAccountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "maintenanceIntervalDays": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "nextMaintenanceDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "isActive": {
                            "type": "boolean"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "code",
                          "name",
                          "costPerHour",
                          "costAccountCode",
                          "maintenanceIntervalDays",
                          "nextMaintenanceDate",
                          "isActive",
                          "notes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionWorkCentersList",
        "summary": "Production work centers list",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "workCentersList"
      }
    },
    "/v1/production/routings/create": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "operations": {
                    "minItems": 1,
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "sequence": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 9999,
                          "format": "int64"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "workCenterId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "setupMinutes": {
                          "default": "0",
                          "type": "string",
                          "pattern": "^\\d{1,7}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        },
                        "runMinutesPerUnit": {
                          "default": "0",
                          "type": "string",
                          "pattern": "^\\d{1,5}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "qualityCheckName": {
                          "type": "string",
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "notes": {
                          "type": "string",
                          "maxLength": 2000,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "sequence",
                        "name",
                        "workCenterId"
                      ]
                    }
                  }
                },
                "required": [
                  "code",
                  "name",
                  "operations"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "operations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sequence": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "workCenterId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "setupMinutes": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "runMinutesPerUnit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "qualityCheckName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "sequence",
                          "name",
                          "workCenterId",
                          "setupMinutes",
                          "runMinutesPerUnit",
                          "qualityCheckName",
                          "notes"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "isActive",
                    "notes",
                    "createdAt",
                    "operations"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionRoutingsCreate",
        "summary": "Production routings create",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "routingsCreate"
      }
    },
    "/v1/production/routings/get": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "operations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sequence": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "workCenterId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "setupMinutes": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "runMinutesPerUnit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "qualityCheckName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "sequence",
                          "name",
                          "workCenterId",
                          "setupMinutes",
                          "runMinutesPerUnit",
                          "qualityCheckName",
                          "notes"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "isActive",
                    "notes",
                    "createdAt",
                    "operations"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionRoutingsGet",
        "summary": "Production routings get",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "routingsGet"
      }
    },
    "/v1/production/routings/list": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isActive": {
                            "type": "boolean"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "code",
                          "name",
                          "isActive",
                          "notes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionRoutingsList",
        "summary": "Production routings list",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "routingsList"
      }
    },
    "/v1/production/maintenance/create": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "workCenterId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "preventive",
                      "corrective"
                    ]
                  },
                  "plannedDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "workCenterId",
                  "type",
                  "plannedDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "workCenterId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "preventive",
                        "corrective"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "planned",
                        "completed",
                        "cancelled"
                      ]
                    },
                    "plannedDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "completedDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "description": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "downtimeHours": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "cost": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "workCenterId",
                    "type",
                    "status",
                    "plannedDate",
                    "completedDate",
                    "description",
                    "downtimeHours",
                    "cost",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionMaintenanceCreate",
        "summary": "Production maintenance create",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "maintenanceCreate"
      }
    },
    "/v1/production/maintenance/complete": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "completedDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "downtimeHours": {
                    "type": "string",
                    "pattern": "^\\d{1,7}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "cost": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id",
                  "completedDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "workCenterId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "preventive",
                        "corrective"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "planned",
                        "completed",
                        "cancelled"
                      ]
                    },
                    "plannedDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "completedDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "description": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "downtimeHours": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "cost": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "workCenterId",
                    "type",
                    "status",
                    "plannedDate",
                    "completedDate",
                    "description",
                    "downtimeHours",
                    "cost",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionMaintenanceComplete",
        "summary": "Production maintenance complete",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "maintenanceComplete"
      }
    },
    "/v1/production/maintenance/cancel": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "workCenterId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "preventive",
                        "corrective"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "planned",
                        "completed",
                        "cancelled"
                      ]
                    },
                    "plannedDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "completedDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "description": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "downtimeHours": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "cost": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "workCenterId",
                    "type",
                    "status",
                    "plannedDate",
                    "completedDate",
                    "description",
                    "downtimeHours",
                    "cost",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionMaintenanceCancel",
        "summary": "Production maintenance cancel",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "maintenanceCancel"
      }
    },
    "/v1/production/maintenance/list": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "workCenterId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "preventive",
                              "corrective"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "planned",
                              "completed",
                              "cancelled"
                            ]
                          },
                          "plannedDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "completedDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "description": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "downtimeHours": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "cost": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "workCenterId",
                          "type",
                          "status",
                          "plannedDate",
                          "completedDate",
                          "description",
                          "downtimeHours",
                          "cost",
                          "notes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionMaintenanceList",
        "summary": "Production maintenance list",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "maintenanceList"
      }
    },
    "/v1/production/boms/create": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "finishedItemId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "outputQuantity": {
                    "default": "1",
                    "type": "string",
                    "pattern": "^\\d{1,11}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "routingId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "lines": {
                    "minItems": 1,
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "componentItemId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "quantity": {
                          "type": "string",
                          "pattern": "^\\d{1,11}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "scrapPercent": {
                          "default": "0",
                          "type": "string",
                          "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        }
                      },
                      "required": [
                        "componentItemId",
                        "quantity"
                      ]
                    }
                  }
                },
                "required": [
                  "code",
                  "name",
                  "finishedItemId",
                  "lines"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "finishedItemId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "outputQuantity": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "routingId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "componentItemId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "scrapPercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "componentItemId",
                          "quantity",
                          "scrapPercent"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "finishedItemId",
                    "outputQuantity",
                    "routingId",
                    "isActive",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionBomsCreate",
        "summary": "Production boms create",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "bomsCreate"
      }
    },
    "/v1/production/boms/get": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "finishedItemId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "outputQuantity": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "routingId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "componentItemId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "scrapPercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "componentItemId",
                          "quantity",
                          "scrapPercent"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "finishedItemId",
                    "outputQuantity",
                    "routingId",
                    "isActive",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionBomsGet",
        "summary": "Production boms get",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "bomsGet"
      }
    },
    "/v1/production/boms/list": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "finishedItemId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "outputQuantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "routingId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isActive": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "code",
                          "name",
                          "finishedItemId",
                          "outputQuantity",
                          "routingId",
                          "isActive"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionBomsList",
        "summary": "Production boms list",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "bomsList"
      }
    },
    "/v1/production/orders/create": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "default": "assembly",
                    "type": "string",
                    "enum": [
                      "assembly",
                      "disassembly"
                    ]
                  },
                  "bomId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "routingId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "quantity": {
                    "type": "string",
                    "pattern": "^\\d{1,11}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "bomId",
                  "warehouseId",
                  "quantity",
                  "date"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "assembly",
                        "disassembly"
                      ]
                    },
                    "bomId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warehouseId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "routingId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "quantity": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "completed"
                      ]
                    },
                    "scrappedQuantity": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "materialCost": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "laborCost": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "scrapCost": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "totalCost": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "operations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "routingOperationId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "workCenterId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sequence": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "plannedMinutes": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "actualMinutes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costPerHour": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "cost": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "routingOperationId",
                          "workCenterId",
                          "sequence",
                          "name",
                          "plannedMinutes",
                          "actualMinutes",
                          "costPerHour",
                          "cost"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "qualityChecks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "orderId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "routingOperationId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "result": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "passed",
                              "failed"
                            ]
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "checkedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "checkedBy": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "orderId",
                          "routingOperationId",
                          "name",
                          "result",
                          "notes",
                          "checkedAt",
                          "checkedBy",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "bomId",
                    "warehouseId",
                    "routingId",
                    "quantity",
                    "date",
                    "status",
                    "scrappedQuantity",
                    "materialCost",
                    "laborCost",
                    "scrapCost",
                    "totalCost",
                    "journalTransactionId",
                    "notes",
                    "createdAt",
                    "operations",
                    "qualityChecks"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionOrdersCreate",
        "summary": "Production orders create",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "ordersCreate"
      }
    },
    "/v1/production/orders/record-operation": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "actualMinutes": {
                    "type": "string",
                    "pattern": "^\\d{1,7}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  }
                },
                "required": [
                  "id",
                  "actualMinutes"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "routingOperationId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "workCenterId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sequence": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "plannedMinutes": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "actualMinutes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "costPerHour": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "cost": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "routingOperationId",
                    "workCenterId",
                    "sequence",
                    "name",
                    "plannedMinutes",
                    "actualMinutes",
                    "costPerHour",
                    "cost"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionOrdersRecordOperation",
        "summary": "Production orders record operation",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "ordersRecordOperation"
      }
    },
    "/v1/production/quality-checks/add": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "orderId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "orderId",
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "orderId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "routingOperationId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "result": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "passed",
                        "failed"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "checkedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "checkedBy": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "orderId",
                    "routingOperationId",
                    "name",
                    "result",
                    "notes",
                    "checkedAt",
                    "checkedBy",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionQualityChecksAdd",
        "summary": "Production quality checks add",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "qualityChecksAdd"
      }
    },
    "/v1/production/quality-checks/record": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "result": {
                    "type": "string",
                    "enum": [
                      "passed",
                      "failed"
                    ]
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id",
                  "result"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "orderId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "routingOperationId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "result": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "passed",
                        "failed"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "checkedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "checkedBy": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "orderId",
                    "routingOperationId",
                    "name",
                    "result",
                    "notes",
                    "checkedAt",
                    "checkedBy",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionQualityChecksRecord",
        "summary": "Production quality checks record",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "qualityChecksRecord"
      }
    },
    "/v1/production/quality-checks/list": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "orderId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "routingOperationId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "result": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "passed",
                              "failed"
                            ]
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "checkedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "checkedBy": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "orderId",
                          "routingOperationId",
                          "name",
                          "result",
                          "notes",
                          "checkedAt",
                          "checkedBy",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionQualityChecksList",
        "summary": "Production quality checks list",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "qualityChecksList"
      }
    },
    "/v1/production/orders/complete": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "scrappedQuantity": {
                    "type": "string",
                    "pattern": "^\\d{1,11}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "componentsAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "finishedAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "assembly",
                        "disassembly"
                      ]
                    },
                    "bomId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warehouseId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "routingId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "quantity": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "completed"
                      ]
                    },
                    "scrappedQuantity": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "materialCost": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "laborCost": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "scrapCost": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "totalCost": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "bomId",
                    "warehouseId",
                    "routingId",
                    "quantity",
                    "date",
                    "status",
                    "scrappedQuantity",
                    "materialCost",
                    "laborCost",
                    "scrapCost",
                    "totalCost",
                    "journalTransactionId",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionOrdersComplete",
        "summary": "Production orders complete",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "ordersComplete"
      }
    },
    "/v1/production/orders/get": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "assembly",
                        "disassembly"
                      ]
                    },
                    "bomId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warehouseId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "routingId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "quantity": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "completed"
                      ]
                    },
                    "scrappedQuantity": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "materialCost": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "laborCost": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "scrapCost": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "totalCost": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "operations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "routingOperationId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "workCenterId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sequence": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "plannedMinutes": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "actualMinutes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costPerHour": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "cost": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "routingOperationId",
                          "workCenterId",
                          "sequence",
                          "name",
                          "plannedMinutes",
                          "actualMinutes",
                          "costPerHour",
                          "cost"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "qualityChecks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "orderId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "routingOperationId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "result": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "passed",
                              "failed"
                            ]
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "checkedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "checkedBy": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "orderId",
                          "routingOperationId",
                          "name",
                          "result",
                          "notes",
                          "checkedAt",
                          "checkedBy",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "bomId",
                    "warehouseId",
                    "routingId",
                    "quantity",
                    "date",
                    "status",
                    "scrappedQuantity",
                    "materialCost",
                    "laborCost",
                    "scrapCost",
                    "totalCost",
                    "journalTransactionId",
                    "notes",
                    "createdAt",
                    "operations",
                    "qualityChecks"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionOrdersGet",
        "summary": "Production orders get",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "ordersGet"
      }
    },
    "/v1/production/orders/list": {
      "post": {
        "tags": [
          "production"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "assembly",
                              "disassembly"
                            ]
                          },
                          "bomId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "warehouseId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "routingId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "completed"
                            ]
                          },
                          "scrappedQuantity": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "materialCost": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "laborCost": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "scrapCost": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "totalCost": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "journalTransactionId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "type",
                          "bomId",
                          "warehouseId",
                          "routingId",
                          "quantity",
                          "date",
                          "status",
                          "scrappedQuantity",
                          "materialCost",
                          "laborCost",
                          "scrapCost",
                          "totalCost",
                          "journalTransactionId",
                          "notes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "productionOrdersList",
        "summary": "Production orders list",
        "x-fern-sdk-group-name": "production",
        "x-fern-sdk-method-name": "ordersList"
      }
    },
    "/v1/ecommerce/orders/create": {
      "post": {
        "tags": [
          "ecommerce"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "channel": {
                    "default": "api",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "externalRef": {
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "partner": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 300,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "email": {
                        "type": "string",
                        "maxLength": 200,
                        "format": "email",
                        "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                      },
                      "code": {
                        "type": "string",
                        "maxLength": 50,
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "required": [
                      "name"
                    ]
                  },
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "shipToCountryCode": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "marketplace": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "lines": {
                    "minItems": 1,
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "itemId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "quantity": {
                          "type": "string",
                          "pattern": "^\\d{1,11}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "unitPriceExclVat": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "vatRatePercent": {
                          "default": "21.00",
                          "type": "string",
                          "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        }
                      },
                      "required": [
                        "description",
                        "quantity",
                        "unitPriceExclVat"
                      ]
                    }
                  }
                },
                "required": [
                  "lines"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "channel": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "externalRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "new",
                        "reserved",
                        "fulfilled",
                        "cancelled"
                      ]
                    },
                    "invoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "shipToCountryCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "marketplace": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "quantity",
                          "unitPriceExclVat",
                          "vatRatePercent"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "channel",
                    "externalRef",
                    "partnerId",
                    "warehouseId",
                    "currency",
                    "status",
                    "invoiceId",
                    "shipToCountryCode",
                    "marketplace",
                    "notes",
                    "createdAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ecommerceOrdersCreate",
        "summary": "Ecommerce orders create",
        "x-fern-sdk-group-name": "ecommerce",
        "x-fern-sdk-method-name": "ordersCreate"
      }
    },
    "/v1/ecommerce/orders/get": {
      "post": {
        "tags": [
          "ecommerce"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "channel": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "externalRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "new",
                        "reserved",
                        "fulfilled",
                        "cancelled"
                      ]
                    },
                    "invoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "shipToCountryCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "marketplace": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "quantity",
                          "unitPriceExclVat",
                          "vatRatePercent"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "channel",
                    "externalRef",
                    "partnerId",
                    "warehouseId",
                    "currency",
                    "status",
                    "invoiceId",
                    "shipToCountryCode",
                    "marketplace",
                    "notes",
                    "createdAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ecommerceOrdersGet",
        "summary": "Ecommerce orders get",
        "x-fern-sdk-group-name": "ecommerce",
        "x-fern-sdk-method-name": "ordersGet"
      }
    },
    "/v1/ecommerce/orders/list": {
      "post": {
        "tags": [
          "ecommerce"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "channel": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "externalRef": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "warehouseId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "new",
                              "reserved",
                              "fulfilled",
                              "cancelled"
                            ]
                          },
                          "invoiceId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "shipToCountryCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "marketplace": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "channel",
                          "externalRef",
                          "partnerId",
                          "warehouseId",
                          "currency",
                          "status",
                          "invoiceId",
                          "shipToCountryCode",
                          "marketplace",
                          "notes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ecommerceOrdersList",
        "summary": "Ecommerce orders list",
        "x-fern-sdk-group-name": "ecommerce",
        "x-fern-sdk-method-name": "ordersList"
      }
    },
    "/v1/ecommerce/orders/reserve": {
      "post": {
        "tags": [
          "ecommerce"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "channel": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "externalRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "new",
                        "reserved",
                        "fulfilled",
                        "cancelled"
                      ]
                    },
                    "invoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "shipToCountryCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "marketplace": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "quantity",
                          "unitPriceExclVat",
                          "vatRatePercent"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "channel",
                    "externalRef",
                    "partnerId",
                    "warehouseId",
                    "currency",
                    "status",
                    "invoiceId",
                    "shipToCountryCode",
                    "marketplace",
                    "notes",
                    "createdAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ecommerceOrdersReserve",
        "summary": "Ecommerce orders reserve",
        "x-fern-sdk-group-name": "ecommerce",
        "x-fern-sdk-method-name": "ordersReserve"
      }
    },
    "/v1/ecommerce/orders/fulfill": {
      "post": {
        "tags": [
          "ecommerce"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "cogsAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "inventoryAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "channel": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "externalRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "new",
                        "reserved",
                        "fulfilled",
                        "cancelled"
                      ]
                    },
                    "invoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "shipToCountryCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "marketplace": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "quantity",
                          "unitPriceExclVat",
                          "vatRatePercent"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "channel",
                    "externalRef",
                    "partnerId",
                    "warehouseId",
                    "currency",
                    "status",
                    "invoiceId",
                    "shipToCountryCode",
                    "marketplace",
                    "notes",
                    "createdAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ecommerceOrdersFulfill",
        "summary": "Ecommerce orders fulfill",
        "x-fern-sdk-group-name": "ecommerce",
        "x-fern-sdk-method-name": "ordersFulfill"
      }
    },
    "/v1/ecommerce/orders/cancel": {
      "post": {
        "tags": [
          "ecommerce"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "channel": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "externalRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "new",
                        "reserved",
                        "fulfilled",
                        "cancelled"
                      ]
                    },
                    "invoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "shipToCountryCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "marketplace": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unitPriceExclVat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "quantity",
                          "unitPriceExclVat",
                          "vatRatePercent"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "channel",
                    "externalRef",
                    "partnerId",
                    "warehouseId",
                    "currency",
                    "status",
                    "invoiceId",
                    "shipToCountryCode",
                    "marketplace",
                    "notes",
                    "createdAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ecommerceOrdersCancel",
        "summary": "Ecommerce orders cancel",
        "x-fern-sdk-group-name": "ecommerce",
        "x-fern-sdk-method-name": "ordersCancel"
      }
    },
    "/v1/ecommerce/products/list": {
      "post": {
        "tags": [
          "ecommerce"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "priceListId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "updatedSince": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 100,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "product",
                              "service",
                              "set"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "barcode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "translations": {
                            "nullable": true,
                            "type": "object",
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "description": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            "maxProperties": 100
                          },
                          "attributes": {
                            "nullable": true,
                            "type": "object",
                            "additionalProperties": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "maxProperties": 100
                          },
                          "groupId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "groupName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "price": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "components": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "itemId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64,
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "quantity": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "itemId",
                                "quantity"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "onHand": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "reserved": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "available": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "deleted": {
                            "type": "boolean"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "type",
                          "name",
                          "code",
                          "barcode",
                          "unit",
                          "description",
                          "translations",
                          "attributes",
                          "groupId",
                          "groupName",
                          "vatRatePercent",
                          "price",
                          "currency",
                          "components",
                          "onHand",
                          "reserved",
                          "available",
                          "deleted",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "total",
                    "page",
                    "pageSize",
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ecommerceProductsList",
        "summary": "Ecommerce products list",
        "x-fern-sdk-group-name": "ecommerce",
        "x-fern-sdk-method-name": "productsList"
      }
    },
    "/v1/ecommerce/stock/list": {
      "post": {
        "tags": [
          "ecommerce"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "itemId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "warehouseId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "onHand": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "reserved": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "available": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "itemId",
                          "warehouseId",
                          "onHand",
                          "reserved",
                          "available"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "ecommerceStockList",
        "summary": "Ecommerce stock list",
        "x-fern-sdk-group-name": "ecommerce",
        "x-fern-sdk-method-name": "stockList"
      }
    },
    "/v1/cash/orders/create": {
      "post": {
        "tags": [
          "cash"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "receipt",
                      "disbursement"
                    ]
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "amount": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "purpose": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "counterAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "cashAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "series": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "employeeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "type",
                  "date",
                  "amount",
                  "purpose",
                  "counterAccountCode"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "receipt",
                        "disbursement"
                      ]
                    },
                    "series": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "number": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "fullNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "partnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "amount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "purpose": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "cashAccountCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "counterAccountCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "series",
                    "number",
                    "fullNumber",
                    "date",
                    "partnerId",
                    "employeeId",
                    "amount",
                    "currency",
                    "purpose",
                    "cashAccountCode",
                    "counterAccountCode",
                    "journalTransactionId",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "cashOrdersCreate",
        "summary": "Cash orders create",
        "x-fern-sdk-group-name": "cash",
        "x-fern-sdk-method-name": "ordersCreate"
      }
    },
    "/v1/cash/orders/get": {
      "post": {
        "tags": [
          "cash"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "receipt",
                        "disbursement"
                      ]
                    },
                    "series": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "number": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "fullNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "partnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "amount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "purpose": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "cashAccountCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "counterAccountCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "series",
                    "number",
                    "fullNumber",
                    "date",
                    "partnerId",
                    "employeeId",
                    "amount",
                    "currency",
                    "purpose",
                    "cashAccountCode",
                    "counterAccountCode",
                    "journalTransactionId",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "cashOrdersGet",
        "summary": "Cash orders get",
        "x-fern-sdk-group-name": "cash",
        "x-fern-sdk-method-name": "ordersGet"
      }
    },
    "/v1/cash/orders/list": {
      "post": {
        "tags": [
          "cash"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "receipt",
                              "disbursement"
                            ]
                          },
                          "series": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "number": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "fullNumber": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "partnerId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employeeId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "purpose": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "cashAccountCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "counterAccountCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "journalTransactionId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "type",
                          "series",
                          "number",
                          "fullNumber",
                          "date",
                          "partnerId",
                          "employeeId",
                          "amount",
                          "currency",
                          "purpose",
                          "cashAccountCode",
                          "counterAccountCode",
                          "journalTransactionId",
                          "notes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "cashOrdersList",
        "summary": "Cash orders list",
        "x-fern-sdk-group-name": "cash",
        "x-fern-sdk-method-name": "ordersList"
      }
    },
    "/v1/cash/balance": {
      "post": {
        "tags": [
          "cash"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "cashAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "asOf": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "cashAccountCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "balance": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "cashAccountCode",
                    "balance"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "cashBalance",
        "summary": "Cash balance",
        "x-fern-sdk-group-name": "cash",
        "x-fern-sdk-method-name": "balance"
      }
    },
    "/v1/cash/advance-holders/balances": {
      "post": {
        "tags": [
          "cash"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "employeeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "firstName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lastName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "issued": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "returned": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "balance": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "employeeId",
                          "firstName",
                          "lastName",
                          "issued",
                          "returned",
                          "balance"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "cashAdvanceHoldersBalances",
        "summary": "Cash advance holders balances",
        "x-fern-sdk-group-name": "cash",
        "x-fern-sdk-method-name": "advanceHoldersBalances"
      }
    },
    "/v1/projects/create": {
      "post": {
        "tags": [
          "projects"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "code",
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "completed",
                        "archived"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "partnerId",
                    "status",
                    "notes",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "projectsCreate",
        "summary": "Projects create",
        "x-fern-sdk-group-name": "projects",
        "x-fern-sdk-method-name": "create"
      }
    },
    "/v1/projects/update": {
      "post": {
        "tags": [
          "projects"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "partnerId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "active",
                      "completed",
                      "archived"
                    ]
                  },
                  "notes": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "completed",
                        "archived"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "partnerId",
                    "status",
                    "notes",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "projectsUpdate",
        "summary": "Projects update",
        "x-fern-sdk-group-name": "projects",
        "x-fern-sdk-method-name": "update"
      }
    },
    "/v1/projects/get": {
      "post": {
        "tags": [
          "projects"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "completed",
                        "archived"
                      ]
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "code",
                    "name",
                    "partnerId",
                    "status",
                    "notes",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "projectsGet",
        "summary": "Projects get",
        "x-fern-sdk-group-name": "projects",
        "x-fern-sdk-method-name": "get"
      }
    },
    "/v1/projects/list": {
      "post": {
        "tags": [
          "projects"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "completed",
                              "archived"
                            ]
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "code",
                          "name",
                          "partnerId",
                          "status",
                          "notes",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "projectsList",
        "summary": "Projects list",
        "x-fern-sdk-group-name": "projects",
        "x-fern-sdk-method-name": "list"
      }
    },
    "/v1/projects/time-entries/create": {
      "post": {
        "tags": [
          "projects"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "projectId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "employeeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "hours": {
                    "type": "string",
                    "pattern": "^\\d{1,5}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "billable": {
                    "default": true,
                    "type": "boolean"
                  },
                  "hourlyRate": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  }
                },
                "required": [
                  "projectId",
                  "date",
                  "hours"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "projectId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "hours": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "description": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "billable": {
                      "type": "boolean"
                    },
                    "hourlyRate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "billedInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "projectId",
                    "employeeId",
                    "date",
                    "hours",
                    "description",
                    "billable",
                    "hourlyRate",
                    "billedInvoiceId",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "projectsTimeEntriesCreate",
        "summary": "Projects time entries create",
        "x-fern-sdk-group-name": "projects",
        "x-fern-sdk-method-name": "timeEntriesCreate"
      }
    },
    "/v1/projects/time-entries/update": {
      "post": {
        "tags": [
          "projects"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "hours": {
                    "type": "string",
                    "pattern": "^\\d{1,5}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "description": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "billable": {
                    "type": "boolean"
                  },
                  "hourlyRate": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "projectId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "employeeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "hours": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "description": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "billable": {
                      "type": "boolean"
                    },
                    "hourlyRate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "billedInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "projectId",
                    "employeeId",
                    "date",
                    "hours",
                    "description",
                    "billable",
                    "hourlyRate",
                    "billedInvoiceId",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "projectsTimeEntriesUpdate",
        "summary": "Projects time entries update",
        "x-fern-sdk-group-name": "projects",
        "x-fern-sdk-method-name": "timeEntriesUpdate"
      }
    },
    "/v1/projects/time-entries/delete": {
      "post": {
        "tags": [
          "projects"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "projectsTimeEntriesDelete",
        "summary": "Projects time entries delete",
        "x-fern-sdk-group-name": "projects",
        "x-fern-sdk-method-name": "timeEntriesDelete"
      }
    },
    "/v1/projects/time-entries/list": {
      "post": {
        "tags": [
          "projects"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "projectId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "employeeId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "hours": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "billable": {
                            "type": "boolean"
                          },
                          "hourlyRate": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "billedInvoiceId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "projectId",
                          "employeeId",
                          "date",
                          "hours",
                          "description",
                          "billable",
                          "hourlyRate",
                          "billedInvoiceId",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "projectsTimeEntriesList",
        "summary": "Projects time entries list",
        "x-fern-sdk-group-name": "projects",
        "x-fern-sdk-method-name": "timeEntriesList"
      }
    },
    "/v1/projects/time-entries/bill": {
      "post": {
        "tags": [
          "projects"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "projectId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "dateFrom": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "dateTo": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "itemId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "hourlyRate": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "vatRatePercent": {
                    "type": "string",
                    "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "vatClassifierCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "issueDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "dueDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "groupBy": {
                    "default": "rate",
                    "type": "string",
                    "enum": [
                      "rate",
                      "entry"
                    ]
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "projectId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "invoiceId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "entryCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "hours": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "invoiceId",
                    "entryCount",
                    "hours",
                    "netTotal",
                    "vatTotal",
                    "grossTotal"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "projectsTimeEntriesBill",
        "summary": "Projects time entries bill",
        "x-fern-sdk-group-name": "projects",
        "x-fern-sdk-method-name": "timeEntriesBill"
      }
    },
    "/v1/projects/report": {
      "post": {
        "tags": [
          "projects"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "projectId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "dateFrom": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "dateTo": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "projectId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "completed",
                              "archived"
                            ]
                          },
                          "revenue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costs": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "profit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "totalHours": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "billableHours": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "billedHours": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unbilledHours": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unbilledAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "projectId",
                          "code",
                          "name",
                          "status",
                          "revenue",
                          "costs",
                          "profit",
                          "totalHours",
                          "billableHours",
                          "billedHours",
                          "unbilledHours",
                          "unbilledAmount"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "projectsReport",
        "summary": "Projects report",
        "x-fern-sdk-group-name": "projects",
        "x-fern-sdk-method-name": "report"
      }
    },
    "/v1/transport/waybills/create": {
      "post": {
        "tags": [
          "transport"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "consigneePartnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "transporterPartnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documentDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "dispatchAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "estimatedArrivalAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "vehiclePlate": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "trailerPlate": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "driverName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "driverSurname": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "loadWarehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "loadAddress": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "unloadAddress": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "valueEur": {
                    "type": "string",
                    "pattern": "^\\d{1,16}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "saleInvoiceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "series": {
                    "default": "VAZ",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "lines": {
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "itemId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 350,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "unit": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 24,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "quantity": {
                          "type": "string",
                          "pattern": "^\\d{1,9}(\\.\\d{1,3})?$",
                          "example": "121.000"
                        },
                        "productCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 70,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "quantity"
                      ]
                    }
                  }
                },
                "required": [
                  "consigneePartnerId",
                  "dispatchAt",
                  "loadAddress",
                  "unloadAddress"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "issued",
                        "cancelled"
                      ]
                    },
                    "series": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fullNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "dispatchAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "estimatedArrivalAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "consigneePartnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transporterPartnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vehiclePlate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "trailerPlate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "driverName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "driverSurname": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "loadWarehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "loadAddress": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "unloadAddress": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "valueEur": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "saleInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "productCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "productCode",
                          "sortOrder"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "status",
                    "series",
                    "fullNumber",
                    "documentDate",
                    "dispatchAt",
                    "estimatedArrivalAt",
                    "consigneePartnerId",
                    "transporterPartnerId",
                    "vehiclePlate",
                    "trailerPlate",
                    "driverName",
                    "driverSurname",
                    "loadWarehouseId",
                    "loadAddress",
                    "unloadAddress",
                    "valueEur",
                    "saleInvoiceId",
                    "notes",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "transportWaybillsCreate",
        "summary": "Transport waybills create",
        "x-fern-sdk-group-name": "transport",
        "x-fern-sdk-method-name": "waybillsCreate"
      }
    },
    "/v1/transport/waybills/update": {
      "post": {
        "tags": [
          "transport"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "consigneePartnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "transporterPartnerId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documentDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "dispatchAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "estimatedArrivalAt": {
                    "nullable": true,
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "vehiclePlate": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "trailerPlate": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "driverName": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "driverSurname": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "loadWarehouseId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "loadAddress": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "unloadAddress": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "valueEur": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,16}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "saleInvoiceId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "series": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "lines": {
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "itemId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 350,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "unit": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 24,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "quantity": {
                          "type": "string",
                          "pattern": "^\\d{1,9}(\\.\\d{1,3})?$",
                          "example": "121.000"
                        },
                        "productCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 70,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "quantity"
                      ]
                    }
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "issued",
                        "cancelled"
                      ]
                    },
                    "series": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fullNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "dispatchAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "estimatedArrivalAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "consigneePartnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transporterPartnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vehiclePlate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "trailerPlate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "driverName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "driverSurname": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "loadWarehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "loadAddress": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "unloadAddress": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "valueEur": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "saleInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "productCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "productCode",
                          "sortOrder"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "status",
                    "series",
                    "fullNumber",
                    "documentDate",
                    "dispatchAt",
                    "estimatedArrivalAt",
                    "consigneePartnerId",
                    "transporterPartnerId",
                    "vehiclePlate",
                    "trailerPlate",
                    "driverName",
                    "driverSurname",
                    "loadWarehouseId",
                    "loadAddress",
                    "unloadAddress",
                    "valueEur",
                    "saleInvoiceId",
                    "notes",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "transportWaybillsUpdate",
        "summary": "Transport waybills update",
        "x-fern-sdk-group-name": "transport",
        "x-fern-sdk-method-name": "waybillsUpdate"
      }
    },
    "/v1/transport/waybills/issue": {
      "post": {
        "tags": [
          "transport"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "issued",
                        "cancelled"
                      ]
                    },
                    "series": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fullNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "dispatchAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "estimatedArrivalAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "consigneePartnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transporterPartnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vehiclePlate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "trailerPlate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "driverName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "driverSurname": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "loadWarehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "loadAddress": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "unloadAddress": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "valueEur": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "saleInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "productCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "productCode",
                          "sortOrder"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "status",
                    "series",
                    "fullNumber",
                    "documentDate",
                    "dispatchAt",
                    "estimatedArrivalAt",
                    "consigneePartnerId",
                    "transporterPartnerId",
                    "vehiclePlate",
                    "trailerPlate",
                    "driverName",
                    "driverSurname",
                    "loadWarehouseId",
                    "loadAddress",
                    "unloadAddress",
                    "valueEur",
                    "saleInvoiceId",
                    "notes",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "transportWaybillsIssue",
        "summary": "Transport waybills issue",
        "x-fern-sdk-group-name": "transport",
        "x-fern-sdk-method-name": "waybillsIssue"
      }
    },
    "/v1/transport/waybills/cancel": {
      "post": {
        "tags": [
          "transport"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "issued",
                        "cancelled"
                      ]
                    },
                    "series": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fullNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "dispatchAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "estimatedArrivalAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "consigneePartnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transporterPartnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vehiclePlate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "trailerPlate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "driverName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "driverSurname": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "loadWarehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "loadAddress": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "unloadAddress": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "valueEur": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "saleInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "status",
                    "series",
                    "fullNumber",
                    "documentDate",
                    "dispatchAt",
                    "estimatedArrivalAt",
                    "consigneePartnerId",
                    "transporterPartnerId",
                    "vehiclePlate",
                    "trailerPlate",
                    "driverName",
                    "driverSurname",
                    "loadWarehouseId",
                    "loadAddress",
                    "unloadAddress",
                    "valueEur",
                    "saleInvoiceId",
                    "notes",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "transportWaybillsCancel",
        "summary": "Transport waybills cancel",
        "x-fern-sdk-group-name": "transport",
        "x-fern-sdk-method-name": "waybillsCancel"
      }
    },
    "/v1/transport/waybills/get": {
      "post": {
        "tags": [
          "transport"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "draft",
                        "issued",
                        "cancelled"
                      ]
                    },
                    "series": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fullNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "dispatchAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "estimatedArrivalAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "consigneePartnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transporterPartnerId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vehiclePlate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "trailerPlate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "driverName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "driverSurname": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "loadWarehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "loadAddress": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "unloadAddress": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "valueEur": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "saleInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "productCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sortOrder": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "id",
                          "itemId",
                          "description",
                          "unit",
                          "quantity",
                          "productCode",
                          "sortOrder"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "status",
                    "series",
                    "fullNumber",
                    "documentDate",
                    "dispatchAt",
                    "estimatedArrivalAt",
                    "consigneePartnerId",
                    "transporterPartnerId",
                    "vehiclePlate",
                    "trailerPlate",
                    "driverName",
                    "driverSurname",
                    "loadWarehouseId",
                    "loadAddress",
                    "unloadAddress",
                    "valueEur",
                    "saleInvoiceId",
                    "notes",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "transportWaybillsGet",
        "summary": "Transport waybills get",
        "x-fern-sdk-group-name": "transport",
        "x-fern-sdk-method-name": "waybillsGet"
      }
    },
    "/v1/transport/waybills/list": {
      "post": {
        "tags": [
          "transport"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "draft",
                              "issued",
                              "cancelled"
                            ]
                          },
                          "series": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fullNumber": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "dispatchAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "estimatedArrivalAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "consigneePartnerId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "transporterPartnerId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vehiclePlate": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "trailerPlate": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "driverName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "driverSurname": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "loadWarehouseId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "loadAddress": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "unloadAddress": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "valueEur": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "saleInvoiceId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "consigneeName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "id",
                          "status",
                          "series",
                          "fullNumber",
                          "documentDate",
                          "dispatchAt",
                          "estimatedArrivalAt",
                          "consigneePartnerId",
                          "transporterPartnerId",
                          "vehiclePlate",
                          "trailerPlate",
                          "driverName",
                          "driverSurname",
                          "loadWarehouseId",
                          "loadAddress",
                          "unloadAddress",
                          "valueEur",
                          "saleInvoiceId",
                          "notes",
                          "createdAt",
                          "updatedAt",
                          "consigneeName"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "transportWaybillsList",
        "summary": "Transport waybills list",
        "x-fern-sdk-group-name": "transport",
        "x-fern-sdk-method-name": "waybillsList"
      }
    },
    "/v1/pos/devices/create": {
      "post": {
        "tags": [
          "pos"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "serialNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "model": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "registrationNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "address": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "name",
                  "serialNumber"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "serialNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "model": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "registrationNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "address": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "serialNumber",
                    "model",
                    "registrationNumber",
                    "address",
                    "isActive",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "posDevicesCreate",
        "summary": "Pos devices create",
        "x-fern-sdk-group-name": "pos",
        "x-fern-sdk-method-name": "devicesCreate"
      }
    },
    "/v1/pos/devices/update": {
      "post": {
        "tags": [
          "pos"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isActive": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "serialNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "model": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "registrationNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "address": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "serialNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "model": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "registrationNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "address": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "serialNumber",
                    "model",
                    "registrationNumber",
                    "address",
                    "isActive",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "posDevicesUpdate",
        "summary": "Pos devices update",
        "x-fern-sdk-group-name": "pos",
        "x-fern-sdk-method-name": "devicesUpdate"
      }
    },
    "/v1/pos/devices/list": {
      "post": {
        "tags": [
          "pos"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "serialNumber": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "model": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "registrationNumber": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "address": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isActive": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "serialNumber",
                          "model",
                          "registrationNumber",
                          "address",
                          "isActive",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "posDevicesList",
        "summary": "Pos devices list",
        "x-fern-sdk-group-name": "pos",
        "x-fern-sdk-method-name": "devicesList"
      }
    },
    "/v1/pos/reports/create": {
      "post": {
        "tags": [
          "pos"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reportNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "deviceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "vatLines": {
                    "minItems": 1,
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "vatRatePercent": {
                          "type": "string",
                          "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                          "example": "121.00"
                        },
                        "netAmount": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        },
                        "vatAmount": {
                          "type": "string",
                          "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        }
                      },
                      "required": [
                        "vatRatePercent",
                        "netAmount",
                        "vatAmount"
                      ]
                    }
                  },
                  "cashAmount": {
                    "default": "0",
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "cardAmount": {
                    "default": "0",
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "itemLines": {
                    "default": [],
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "itemId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "quantity": {
                          "type": "string",
                          "pattern": "^\\d{1,11}(\\.\\d{1,4})?$",
                          "example": "121.0000"
                        }
                      },
                      "required": [
                        "itemId",
                        "quantity"
                      ]
                    }
                  },
                  "cashAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "cardAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "revenueAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "vatAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "cogsAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "inventoryAccountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "reportNumber",
                  "date",
                  "vatLines"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "reportNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "deviceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "cashAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "cardAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "cogsTotal": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "vatLines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "netAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "vatRatePercent",
                          "netAmount",
                          "vatAmount"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "reportNumber",
                    "date",
                    "deviceId",
                    "warehouseId",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "cashAmount",
                    "cardAmount",
                    "cogsTotal",
                    "journalTransactionId",
                    "notes",
                    "createdAt",
                    "vatLines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "posReportsCreate",
        "summary": "Pos reports create",
        "x-fern-sdk-group-name": "pos",
        "x-fern-sdk-method-name": "reportsCreate"
      }
    },
    "/v1/pos/reports/get": {
      "post": {
        "tags": [
          "pos"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "reportNumber": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "deviceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warehouseId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "cashAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "cardAmount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "cogsTotal": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "vatLines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "netAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "vatRatePercent",
                          "netAmount",
                          "vatAmount"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "reportNumber",
                    "date",
                    "deviceId",
                    "warehouseId",
                    "netTotal",
                    "vatTotal",
                    "grossTotal",
                    "cashAmount",
                    "cardAmount",
                    "cogsTotal",
                    "journalTransactionId",
                    "notes",
                    "createdAt",
                    "vatLines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "posReportsGet",
        "summary": "Pos reports get",
        "x-fern-sdk-group-name": "pos",
        "x-fern-sdk-method-name": "reportsGet"
      }
    },
    "/v1/pos/reports/list": {
      "post": {
        "tags": [
          "pos"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "reportNumber": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "deviceId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "warehouseId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "netTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "grossTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "cashAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "cardAmount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "cogsTotal": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "journalTransactionId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "reportNumber",
                          "date",
                          "deviceId",
                          "warehouseId",
                          "netTotal",
                          "vatTotal",
                          "grossTotal",
                          "cashAmount",
                          "cardAmount",
                          "cogsTotal",
                          "journalTransactionId",
                          "notes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "posReportsList",
        "summary": "Pos reports list",
        "x-fern-sdk-group-name": "pos",
        "x-fern-sdk-method-name": "reportsList"
      }
    },
    "/v1/calendar/list": {
      "post": {
        "tags": [
          "calendar"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "to": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "includeDone": {
                    "default": true,
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 120,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "id": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "custom",
                              "obligation"
                            ]
                          },
                          "ruleKey": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "period": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "title": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "dueDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "done": {
                            "type": "boolean"
                          },
                          "href": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "submission": {
                            "nullable": true,
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "obligation": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "periodYear": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991,
                                "format": "int64"
                              },
                              "periodMonth": {
                                "nullable": true,
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991,
                                "format": "int64"
                              },
                              "variant": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "generated",
                                  "submitted",
                                  "accepted",
                                  "rejected"
                                ]
                              },
                              "fileName": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "fileId": {
                                "nullable": true,
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[\\s\\S]*$"
                              },
                              "externalRef": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "message": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "ruleKey": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "period": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "documentKey": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "amendment": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991,
                                "format": "int64"
                              },
                              "origin": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "transportSystem": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "environment": {
                                "nullable": true,
                                "type": "string",
                                "enum": [
                                  "test",
                                  "production"
                                ]
                              },
                              "submittedAt": {
                                "nullable": true,
                                "type": "string",
                                "format": "date-time",
                                "example": "2026-07-01T09:30:00.000Z"
                              },
                              "acceptedAt": {
                                "nullable": true,
                                "type": "string",
                                "format": "date-time",
                                "example": "2026-07-01T09:30:00.000Z"
                              },
                              "rejectedAt": {
                                "nullable": true,
                                "type": "string",
                                "format": "date-time",
                                "example": "2026-07-01T09:30:00.000Z"
                              },
                              "checkedAt": {
                                "nullable": true,
                                "type": "string",
                                "format": "date-time",
                                "example": "2026-07-01T09:30:00.000Z"
                              },
                              "nextCheckAt": {
                                "nullable": true,
                                "type": "string",
                                "format": "date-time",
                                "example": "2026-07-01T09:30:00.000Z"
                              },
                              "attempts": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991,
                                "format": "int64"
                              },
                              "deliveryError": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "sentSha256": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "certificateFingerprint": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "submittedByActorType": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "submittedByActorId": {
                                "nullable": true,
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2026-07-01T09:30:00.000Z"
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2026-07-01T09:30:00.000Z"
                              }
                            },
                            "required": [
                              "id",
                              "obligation",
                              "periodYear",
                              "periodMonth",
                              "variant",
                              "status",
                              "fileName",
                              "fileId",
                              "externalRef",
                              "message",
                              "ruleKey",
                              "period",
                              "documentKey",
                              "amendment",
                              "origin",
                              "transportSystem",
                              "environment",
                              "submittedAt",
                              "acceptedAt",
                              "rejectedAt",
                              "checkedAt",
                              "nextCheckAt",
                              "attempts",
                              "deliveryError",
                              "sentSha256",
                              "certificateFingerprint",
                              "submittedByActorType",
                              "submittedByActorId",
                              "createdAt",
                              "updatedAt"
                            ],
                            "additionalProperties": false
                          },
                          "submissions": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64,
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "obligation": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "periodYear": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "format": "int64"
                                },
                                "periodMonth": {
                                  "nullable": true,
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "format": "int64"
                                },
                                "variant": {
                                  "nullable": true,
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "generated",
                                    "submitted",
                                    "accepted",
                                    "rejected"
                                  ]
                                },
                                "fileName": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "fileId": {
                                  "nullable": true,
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64,
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "externalRef": {
                                  "nullable": true,
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "message": {
                                  "nullable": true,
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "ruleKey": {
                                  "nullable": true,
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "period": {
                                  "nullable": true,
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "documentKey": {
                                  "nullable": true,
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "amendment": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "format": "int64"
                                },
                                "origin": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "transportSystem": {
                                  "nullable": true,
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "environment": {
                                  "nullable": true,
                                  "type": "string",
                                  "enum": [
                                    "test",
                                    "production"
                                  ]
                                },
                                "submittedAt": {
                                  "nullable": true,
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2026-07-01T09:30:00.000Z"
                                },
                                "acceptedAt": {
                                  "nullable": true,
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2026-07-01T09:30:00.000Z"
                                },
                                "rejectedAt": {
                                  "nullable": true,
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2026-07-01T09:30:00.000Z"
                                },
                                "checkedAt": {
                                  "nullable": true,
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2026-07-01T09:30:00.000Z"
                                },
                                "nextCheckAt": {
                                  "nullable": true,
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2026-07-01T09:30:00.000Z"
                                },
                                "attempts": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "format": "int64"
                                },
                                "deliveryError": {
                                  "nullable": true,
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "sentSha256": {
                                  "nullable": true,
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "certificateFingerprint": {
                                  "nullable": true,
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "submittedByActorType": {
                                  "nullable": true,
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "submittedByActorId": {
                                  "nullable": true,
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "createdAt": {
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2026-07-01T09:30:00.000Z"
                                },
                                "updatedAt": {
                                  "type": "string",
                                  "format": "date-time",
                                  "example": "2026-07-01T09:30:00.000Z"
                                }
                              },
                              "required": [
                                "id",
                                "obligation",
                                "periodYear",
                                "periodMonth",
                                "variant",
                                "status",
                                "fileName",
                                "fileId",
                                "externalRef",
                                "message",
                                "ruleKey",
                                "period",
                                "documentKey",
                                "amendment",
                                "origin",
                                "transportSystem",
                                "environment",
                                "submittedAt",
                                "acceptedAt",
                                "rejectedAt",
                                "checkedAt",
                                "nextCheckAt",
                                "attempts",
                                "deliveryError",
                                "sentSha256",
                                "certificateFingerprint",
                                "submittedByActorType",
                                "submittedByActorId",
                                "createdAt",
                                "updatedAt"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "canSubmit": {
                            "type": "boolean"
                          },
                          "canAmend": {
                            "type": "boolean"
                          },
                          "canDownload": {
                            "type": "boolean"
                          },
                          "automated": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "key",
                          "id",
                          "kind",
                          "ruleKey",
                          "period",
                          "title",
                          "dueDate",
                          "notes",
                          "done",
                          "href",
                          "submission",
                          "submissions",
                          "canSubmit",
                          "canAmend",
                          "canDownload",
                          "automated"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "calendarList",
        "summary": "Calendar list",
        "x-fern-sdk-group-name": "calendar",
        "x-fern-sdk-method-name": "list"
      }
    },
    "/v1/calendar/get": {
      "post": {
        "tags": [
          "calendar"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "key"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "id": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "custom",
                        "obligation"
                      ]
                    },
                    "ruleKey": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "period": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "title": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "dueDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "done": {
                      "type": "boolean"
                    },
                    "href": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "submission": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "obligation": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "periodYear": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "periodMonth": {
                          "nullable": true,
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "variant": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "generated",
                            "submitted",
                            "accepted",
                            "rejected"
                          ]
                        },
                        "fileName": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "fileId": {
                          "nullable": true,
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "externalRef": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "message": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "ruleKey": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "period": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "documentKey": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "amendment": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "origin": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "transportSystem": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "environment": {
                          "nullable": true,
                          "type": "string",
                          "enum": [
                            "test",
                            "production"
                          ]
                        },
                        "submittedAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "acceptedAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "rejectedAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "checkedAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "nextCheckAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "attempts": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "deliveryError": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "sentSha256": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "certificateFingerprint": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "submittedByActorType": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "submittedByActorId": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        }
                      },
                      "required": [
                        "id",
                        "obligation",
                        "periodYear",
                        "periodMonth",
                        "variant",
                        "status",
                        "fileName",
                        "fileId",
                        "externalRef",
                        "message",
                        "ruleKey",
                        "period",
                        "documentKey",
                        "amendment",
                        "origin",
                        "transportSystem",
                        "environment",
                        "submittedAt",
                        "acceptedAt",
                        "rejectedAt",
                        "checkedAt",
                        "nextCheckAt",
                        "attempts",
                        "deliveryError",
                        "sentSha256",
                        "certificateFingerprint",
                        "submittedByActorType",
                        "submittedByActorId",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    },
                    "submissions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "obligation": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "periodYear": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "periodMonth": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "variant": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "generated",
                              "submitted",
                              "accepted",
                              "rejected"
                            ]
                          },
                          "fileName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "externalRef": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "message": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ruleKey": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "period": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentKey": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "amendment": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "origin": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "transportSystem": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "environment": {
                            "nullable": true,
                            "type": "string",
                            "enum": [
                              "test",
                              "production"
                            ]
                          },
                          "submittedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "acceptedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "rejectedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "checkedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "nextCheckAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "attempts": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "deliveryError": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sentSha256": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "certificateFingerprint": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "submittedByActorType": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "submittedByActorId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "obligation",
                          "periodYear",
                          "periodMonth",
                          "variant",
                          "status",
                          "fileName",
                          "fileId",
                          "externalRef",
                          "message",
                          "ruleKey",
                          "period",
                          "documentKey",
                          "amendment",
                          "origin",
                          "transportSystem",
                          "environment",
                          "submittedAt",
                          "acceptedAt",
                          "rejectedAt",
                          "checkedAt",
                          "nextCheckAt",
                          "attempts",
                          "deliveryError",
                          "sentSha256",
                          "certificateFingerprint",
                          "submittedByActorType",
                          "submittedByActorId",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "canSubmit": {
                      "type": "boolean"
                    },
                    "canAmend": {
                      "type": "boolean"
                    },
                    "canDownload": {
                      "type": "boolean"
                    },
                    "automated": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "key",
                    "id",
                    "kind",
                    "ruleKey",
                    "period",
                    "title",
                    "dueDate",
                    "notes",
                    "done",
                    "href",
                    "submission",
                    "submissions",
                    "canSubmit",
                    "canAmend",
                    "canDownload",
                    "automated"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "calendarGet",
        "summary": "Calendar get",
        "x-fern-sdk-group-name": "calendar",
        "x-fern-sdk-method-name": "get"
      }
    },
    "/v1/calendar/submit": {
      "post": {
        "summary": "Generate the filing for a deadline and send it to the administration",
        "tags": [
          "calendar"
        ],
        "description": "With amend: true the return is filed again as a correction of the one already submitted or accepted for the period; only returns whose format has a correction mark accept it.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "amend": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "key"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "obligation": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "periodYear": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "periodMonth": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "variant": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "generated",
                        "submitted",
                        "accepted",
                        "rejected"
                      ]
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "externalRef": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "message": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "ruleKey": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "period": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "documentKey": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "amendment": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "origin": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transportSystem": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "environment": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "test",
                        "production"
                      ]
                    },
                    "submittedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "acceptedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "rejectedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "checkedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "nextCheckAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "attempts": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "deliveryError": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sentSha256": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "certificateFingerprint": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "submittedByActorType": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "submittedByActorId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "obligation",
                    "periodYear",
                    "periodMonth",
                    "variant",
                    "status",
                    "fileName",
                    "fileId",
                    "externalRef",
                    "message",
                    "ruleKey",
                    "period",
                    "documentKey",
                    "amendment",
                    "origin",
                    "transportSystem",
                    "environment",
                    "submittedAt",
                    "acceptedAt",
                    "rejectedAt",
                    "checkedAt",
                    "nextCheckAt",
                    "attempts",
                    "deliveryError",
                    "sentSha256",
                    "certificateFingerprint",
                    "submittedByActorType",
                    "submittedByActorId",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "calendarSubmit",
        "x-fern-sdk-group-name": "calendar",
        "x-fern-sdk-method-name": "submit"
      }
    },
    "/v1/calendar/download": {
      "post": {
        "summary": "Generate the file of a deadline for the company to send itself",
        "tags": [
          "calendar"
        ],
        "description": "Builds the file of a deadline whose format Nordlet produces but whose administration takes it only through the company's own account or program. Nothing is sent and no filing is recorded.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "key"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "mimeType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "variant": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "content": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "key",
                    "fileName",
                    "mimeType",
                    "variant",
                    "content",
                    "warnings"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "calendarDownload",
        "x-fern-sdk-group-name": "calendar",
        "x-fern-sdk-method-name": "download"
      }
    },
    "/v1/calendar/create": {
      "post": {
        "tags": [
          "calendar"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "dueDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 5000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "done": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "title",
                  "dueDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "id": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "custom",
                        "obligation"
                      ]
                    },
                    "ruleKey": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "period": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "title": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "dueDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "done": {
                      "type": "boolean"
                    },
                    "href": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "submission": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "obligation": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "periodYear": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "periodMonth": {
                          "nullable": true,
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "variant": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "generated",
                            "submitted",
                            "accepted",
                            "rejected"
                          ]
                        },
                        "fileName": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "fileId": {
                          "nullable": true,
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "externalRef": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "message": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "ruleKey": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "period": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "documentKey": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "amendment": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "origin": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "transportSystem": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "environment": {
                          "nullable": true,
                          "type": "string",
                          "enum": [
                            "test",
                            "production"
                          ]
                        },
                        "submittedAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "acceptedAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "rejectedAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "checkedAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "nextCheckAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "attempts": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "deliveryError": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "sentSha256": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "certificateFingerprint": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "submittedByActorType": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "submittedByActorId": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        }
                      },
                      "required": [
                        "id",
                        "obligation",
                        "periodYear",
                        "periodMonth",
                        "variant",
                        "status",
                        "fileName",
                        "fileId",
                        "externalRef",
                        "message",
                        "ruleKey",
                        "period",
                        "documentKey",
                        "amendment",
                        "origin",
                        "transportSystem",
                        "environment",
                        "submittedAt",
                        "acceptedAt",
                        "rejectedAt",
                        "checkedAt",
                        "nextCheckAt",
                        "attempts",
                        "deliveryError",
                        "sentSha256",
                        "certificateFingerprint",
                        "submittedByActorType",
                        "submittedByActorId",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    },
                    "submissions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "obligation": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "periodYear": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "periodMonth": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "variant": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "generated",
                              "submitted",
                              "accepted",
                              "rejected"
                            ]
                          },
                          "fileName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "externalRef": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "message": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ruleKey": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "period": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentKey": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "amendment": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "origin": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "transportSystem": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "environment": {
                            "nullable": true,
                            "type": "string",
                            "enum": [
                              "test",
                              "production"
                            ]
                          },
                          "submittedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "acceptedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "rejectedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "checkedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "nextCheckAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "attempts": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "deliveryError": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sentSha256": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "certificateFingerprint": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "submittedByActorType": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "submittedByActorId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "obligation",
                          "periodYear",
                          "periodMonth",
                          "variant",
                          "status",
                          "fileName",
                          "fileId",
                          "externalRef",
                          "message",
                          "ruleKey",
                          "period",
                          "documentKey",
                          "amendment",
                          "origin",
                          "transportSystem",
                          "environment",
                          "submittedAt",
                          "acceptedAt",
                          "rejectedAt",
                          "checkedAt",
                          "nextCheckAt",
                          "attempts",
                          "deliveryError",
                          "sentSha256",
                          "certificateFingerprint",
                          "submittedByActorType",
                          "submittedByActorId",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "canSubmit": {
                      "type": "boolean"
                    },
                    "canAmend": {
                      "type": "boolean"
                    },
                    "canDownload": {
                      "type": "boolean"
                    },
                    "automated": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "key",
                    "id",
                    "kind",
                    "ruleKey",
                    "period",
                    "title",
                    "dueDate",
                    "notes",
                    "done",
                    "href",
                    "submission",
                    "submissions",
                    "canSubmit",
                    "canAmend",
                    "canDownload",
                    "automated"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "calendarCreate",
        "summary": "Calendar create",
        "x-fern-sdk-group-name": "calendar",
        "x-fern-sdk-method-name": "create"
      }
    },
    "/v1/calendar/update": {
      "post": {
        "tags": [
          "calendar"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "dueDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "notes": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 5000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "done": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "key"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "id": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "custom",
                        "obligation"
                      ]
                    },
                    "ruleKey": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "period": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "title": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "dueDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "done": {
                      "type": "boolean"
                    },
                    "href": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "submission": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "obligation": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "periodYear": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "periodMonth": {
                          "nullable": true,
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "variant": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "generated",
                            "submitted",
                            "accepted",
                            "rejected"
                          ]
                        },
                        "fileName": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "fileId": {
                          "nullable": true,
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "externalRef": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "message": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "ruleKey": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "period": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "documentKey": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "amendment": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "origin": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "transportSystem": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "environment": {
                          "nullable": true,
                          "type": "string",
                          "enum": [
                            "test",
                            "production"
                          ]
                        },
                        "submittedAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "acceptedAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "rejectedAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "checkedAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "nextCheckAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "attempts": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "deliveryError": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "sentSha256": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "certificateFingerprint": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "submittedByActorType": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "submittedByActorId": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        }
                      },
                      "required": [
                        "id",
                        "obligation",
                        "periodYear",
                        "periodMonth",
                        "variant",
                        "status",
                        "fileName",
                        "fileId",
                        "externalRef",
                        "message",
                        "ruleKey",
                        "period",
                        "documentKey",
                        "amendment",
                        "origin",
                        "transportSystem",
                        "environment",
                        "submittedAt",
                        "acceptedAt",
                        "rejectedAt",
                        "checkedAt",
                        "nextCheckAt",
                        "attempts",
                        "deliveryError",
                        "sentSha256",
                        "certificateFingerprint",
                        "submittedByActorType",
                        "submittedByActorId",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    },
                    "submissions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "obligation": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "periodYear": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "periodMonth": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "variant": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "generated",
                              "submitted",
                              "accepted",
                              "rejected"
                            ]
                          },
                          "fileName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "externalRef": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "message": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ruleKey": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "period": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentKey": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "amendment": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "origin": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "transportSystem": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "environment": {
                            "nullable": true,
                            "type": "string",
                            "enum": [
                              "test",
                              "production"
                            ]
                          },
                          "submittedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "acceptedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "rejectedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "checkedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "nextCheckAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "attempts": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "deliveryError": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sentSha256": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "certificateFingerprint": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "submittedByActorType": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "submittedByActorId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "obligation",
                          "periodYear",
                          "periodMonth",
                          "variant",
                          "status",
                          "fileName",
                          "fileId",
                          "externalRef",
                          "message",
                          "ruleKey",
                          "period",
                          "documentKey",
                          "amendment",
                          "origin",
                          "transportSystem",
                          "environment",
                          "submittedAt",
                          "acceptedAt",
                          "rejectedAt",
                          "checkedAt",
                          "nextCheckAt",
                          "attempts",
                          "deliveryError",
                          "sentSha256",
                          "certificateFingerprint",
                          "submittedByActorType",
                          "submittedByActorId",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "canSubmit": {
                      "type": "boolean"
                    },
                    "canAmend": {
                      "type": "boolean"
                    },
                    "canDownload": {
                      "type": "boolean"
                    },
                    "automated": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "key",
                    "id",
                    "kind",
                    "ruleKey",
                    "period",
                    "title",
                    "dueDate",
                    "notes",
                    "done",
                    "href",
                    "submission",
                    "submissions",
                    "canSubmit",
                    "canAmend",
                    "canDownload",
                    "automated"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "calendarUpdate",
        "summary": "Calendar update",
        "x-fern-sdk-group-name": "calendar",
        "x-fern-sdk-method-name": "update"
      }
    },
    "/v1/calendar/delete": {
      "post": {
        "tags": [
          "calendar"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "key"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "key"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "calendarDelete",
        "summary": "Calendar delete",
        "x-fern-sdk-group-name": "calendar",
        "x-fern-sdk-method-name": "delete"
      }
    },
    "/v1/audit/list": {
      "post": {
        "tags": [
          "audit"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "actorType": {
                            "type": "string",
                            "enum": [
                              "user",
                              "api_key",
                              "system"
                            ]
                          },
                          "actorId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "action": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "entity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "entityId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "diff": {
                            "nullable": true
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "actorType",
                          "actorId",
                          "action",
                          "entity",
                          "entityId",
                          "diff",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "auditList",
        "summary": "Audit list",
        "x-fern-sdk-group-name": "audit",
        "x-fern-sdk-method-name": "list"
      }
    },
    "/v1/webhooks/subscriptions/create": {
      "post": {
        "tags": [
          "webhooks"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "maxLength": 2000,
                    "format": "uri"
                  },
                  "events": {
                    "minItems": 1,
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "agreement.invoice_generated",
                        "bank_feed.synced",
                        "filing.failed",
                        "filing.rejected",
                        "goods_receipt.posted",
                        "intercompany.invoice_mirrored",
                        "item.created",
                        "item.deleted",
                        "item.updated",
                        "lead.converted",
                        "lead.created",
                        "partner_inquiry.created",
                        "payroll_run.approved",
                        "pos_report.created",
                        "price_list.updated",
                        "purchase_invoice.paid",
                        "purchase_invoice.registered",
                        "purchase_order.approved",
                        "purchase_order.received",
                        "refund_liability.actual",
                        "refund_liability.trued_up",
                        "report.completed",
                        "report.failed",
                        "revenue_recognition.modified",
                        "revenue_recognition.posted",
                        "sale_invoice.einvoice_sent",
                        "sale_invoice.issued",
                        "sale_invoice.paid",
                        "sale_invoice.peppol_sent",
                        "sale_invoice.sent",
                        "sales_order.created",
                        "sales_order.fulfilled",
                        "settlement.imported",
                        "settlement.posted",
                        "settlement.updated",
                        "stock.changed",
                        "stock.reorder_needed",
                        "vat_review.opened",
                        "vat_review.resolved",
                        "*"
                      ],
                      "description": "An event type, or \"*\" for every event"
                    }
                  },
                  "secret": {
                    "type": "string",
                    "minLength": 16,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "url",
                  "events"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "url": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "events": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "consecutiveFailures": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "lastDeliveryStatus": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "pending",
                        "delivered",
                        "failed"
                      ]
                    },
                    "lastDeliveryAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "pausedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "secret": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "url",
                    "events",
                    "isActive",
                    "consecutiveFailures",
                    "lastDeliveryStatus",
                    "lastDeliveryAt",
                    "pausedAt",
                    "createdAt",
                    "secret"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "webhooksSubscriptionsCreate",
        "summary": "Webhooks subscriptions create",
        "x-fern-sdk-group-name": "webhooks",
        "x-fern-sdk-method-name": "subscriptionsCreate"
      }
    },
    "/v1/webhooks/subscriptions/list": {
      "post": {
        "tags": [
          "webhooks"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "url": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "events": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "isActive": {
                            "type": "boolean"
                          },
                          "consecutiveFailures": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "lastDeliveryStatus": {
                            "nullable": true,
                            "type": "string",
                            "enum": [
                              "pending",
                              "delivered",
                              "failed"
                            ]
                          },
                          "lastDeliveryAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "pausedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "url",
                          "events",
                          "isActive",
                          "consecutiveFailures",
                          "lastDeliveryStatus",
                          "lastDeliveryAt",
                          "pausedAt",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "webhooksSubscriptionsList",
        "summary": "Webhooks subscriptions list",
        "x-fern-sdk-group-name": "webhooks",
        "x-fern-sdk-method-name": "subscriptionsList"
      }
    },
    "/v1/webhooks/subscriptions/update": {
      "post": {
        "tags": [
          "webhooks"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "url": {
                    "type": "string",
                    "maxLength": 2000,
                    "format": "uri"
                  },
                  "events": {
                    "minItems": 1,
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "agreement.invoice_generated",
                        "bank_feed.synced",
                        "filing.failed",
                        "filing.rejected",
                        "goods_receipt.posted",
                        "intercompany.invoice_mirrored",
                        "item.created",
                        "item.deleted",
                        "item.updated",
                        "lead.converted",
                        "lead.created",
                        "partner_inquiry.created",
                        "payroll_run.approved",
                        "pos_report.created",
                        "price_list.updated",
                        "purchase_invoice.paid",
                        "purchase_invoice.registered",
                        "purchase_order.approved",
                        "purchase_order.received",
                        "refund_liability.actual",
                        "refund_liability.trued_up",
                        "report.completed",
                        "report.failed",
                        "revenue_recognition.modified",
                        "revenue_recognition.posted",
                        "sale_invoice.einvoice_sent",
                        "sale_invoice.issued",
                        "sale_invoice.paid",
                        "sale_invoice.peppol_sent",
                        "sale_invoice.sent",
                        "sales_order.created",
                        "sales_order.fulfilled",
                        "settlement.imported",
                        "settlement.posted",
                        "settlement.updated",
                        "stock.changed",
                        "stock.reorder_needed",
                        "vat_review.opened",
                        "vat_review.resolved",
                        "*"
                      ],
                      "description": "An event type, or \"*\" for every event"
                    }
                  },
                  "isActive": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "url": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "events": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "consecutiveFailures": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "lastDeliveryStatus": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "pending",
                        "delivered",
                        "failed"
                      ]
                    },
                    "lastDeliveryAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "pausedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "url",
                    "events",
                    "isActive",
                    "consecutiveFailures",
                    "lastDeliveryStatus",
                    "lastDeliveryAt",
                    "pausedAt",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "webhooksSubscriptionsUpdate",
        "summary": "Webhooks subscriptions update",
        "x-fern-sdk-group-name": "webhooks",
        "x-fern-sdk-method-name": "subscriptionsUpdate"
      }
    },
    "/v1/webhooks/subscriptions/delete": {
      "post": {
        "tags": [
          "webhooks"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "webhooksSubscriptionsDelete",
        "summary": "Webhooks subscriptions delete",
        "x-fern-sdk-group-name": "webhooks",
        "x-fern-sdk-method-name": "subscriptionsDelete"
      }
    },
    "/v1/webhooks/deliveries/list": {
      "post": {
        "tags": [
          "webhooks"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "subscriptionId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "eventType": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "delivered",
                              "failed"
                            ]
                          },
                          "attempts": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "lastError": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "deliveredAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "subscriptionId",
                          "eventType",
                          "status",
                          "attempts",
                          "lastError",
                          "createdAt",
                          "deliveredAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "webhooksDeliveriesList",
        "summary": "Webhooks deliveries list",
        "x-fern-sdk-group-name": "webhooks",
        "x-fern-sdk-method-name": "deliveriesList"
      }
    },
    "/v1/webhooks/deliveries/redeliver": {
      "post": {
        "tags": [
          "webhooks"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "status"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "webhooksDeliveriesRedeliver",
        "summary": "Webhooks deliveries redeliver",
        "x-fern-sdk-group-name": "webhooks",
        "x-fern-sdk-method-name": "deliveriesRedeliver"
      }
    },
    "/v1/bank/accounts/create": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "iban": {
                    "type": "string",
                    "minLength": 5,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "accountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documentRef": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "iban": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "accountCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "iban",
                    "currency",
                    "accountCode",
                    "isActive",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankAccountsCreate",
        "summary": "Bank accounts create",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "accountsCreate"
      }
    },
    "/v1/bank/accounts/list": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "iban": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isActive": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "iban",
                          "currency",
                          "accountCode",
                          "isActive",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankAccountsList",
        "summary": "Bank accounts list",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "accountsList"
      }
    },
    "/v1/bank/accounts/update": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "iban": {
                    "type": "string",
                    "minLength": 5,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "accountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isActive": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "iban": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "accountCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "iban",
                    "currency",
                    "accountCode",
                    "isActive",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankAccountsUpdate",
        "summary": "Bank accounts update",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "accountsUpdate"
      }
    },
    "/v1/bank/transactions/import": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "bankAccountId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "transactions": {
                    "minItems": 1,
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "date": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "amount": {
                          "type": "string",
                          "pattern": "^-?\\d{1,15}(\\.\\d{1,4})?$",
                          "example": "-121.0000"
                        },
                        "currency": {
                          "type": "string",
                          "minLength": 3,
                          "maxLength": 3,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "counterpartyName": {
                          "type": "string",
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "counterpartyIban": {
                          "type": "string",
                          "maxLength": 50,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 1000,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "externalId": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "date",
                        "amount"
                      ]
                    }
                  }
                },
                "required": [
                  "bankAccountId",
                  "transactions"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "imported": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "skipped": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    }
                  },
                  "required": [
                    "imported",
                    "skipped"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankTransactionsImport",
        "summary": "Bank transactions import",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "transactionsImport"
      }
    },
    "/v1/bank/statements/import": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "bankAccountId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "templateId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "format": {
                    "default": "camt053",
                    "type": "string",
                    "enum": [
                      "camt053",
                      "mt940",
                      "stripe-csv"
                    ]
                  },
                  "content": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20000000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "transfersCsv": {
                    "description": "Stripe transfers export (plain CSV or base64) used to post lender payouts and commissions",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20000000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "bankAccountId",
                  "content"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "imported": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "skipped": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "posted": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "customersCreated": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "invoicesCreated": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "invoicesLinked": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "creditNotesCreated": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "authorizationsRecorded": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "payoutsPosted": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "commissionsPosted": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "paymentsMatched": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "statements": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "statementId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "iban": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fromDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "toDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "openingBalance": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "closingBalance": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "transactionCount": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "statementId",
                          "iban",
                          "fromDate",
                          "toDate",
                          "openingBalance",
                          "closingBalance",
                          "transactionCount"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "imported",
                    "skipped",
                    "posted",
                    "customersCreated",
                    "invoicesCreated",
                    "invoicesLinked",
                    "creditNotesCreated",
                    "authorizationsRecorded",
                    "payoutsPosted",
                    "commissionsPosted",
                    "paymentsMatched",
                    "warnings",
                    "statements"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankStatementsImport",
        "summary": "Bank statements import",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "statementsImport"
      }
    },
    "/v1/bank/transactions/list": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "bankAccountId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "counterpartyName": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "counterpartyIban": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "externalId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "new",
                              "matched"
                            ]
                          },
                          "matchedDocumentType": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "matchedDocumentId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "journalTransactionId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "bankAccountId",
                          "date",
                          "amount",
                          "currency",
                          "counterpartyName",
                          "counterpartyIban",
                          "description",
                          "externalId",
                          "status",
                          "matchedDocumentType",
                          "matchedDocumentId",
                          "journalTransactionId",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankTransactionsList",
        "summary": "Bank transactions list",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "transactionsList"
      }
    },
    "/v1/bank/transactions/match": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "transactionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documentType": {
                    "type": "string",
                    "enum": [
                      "sale_invoice",
                      "purchase_invoice"
                    ]
                  },
                  "documentId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "invoiceAmount": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  }
                },
                "required": [
                  "transactionId",
                  "documentType",
                  "documentId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankAccountId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "amount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "counterpartyName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "counterpartyIban": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "description": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "externalId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "new",
                        "matched"
                      ]
                    },
                    "matchedDocumentType": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "matchedDocumentId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "bankAccountId",
                    "date",
                    "amount",
                    "currency",
                    "counterpartyName",
                    "counterpartyIban",
                    "description",
                    "externalId",
                    "status",
                    "matchedDocumentType",
                    "matchedDocumentId",
                    "journalTransactionId",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankTransactionsMatch",
        "summary": "Bank transactions match",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "transactionsMatch"
      }
    },
    "/v1/bank/transactions/unmatch": {
      "post": {
        "tags": [
          "bank"
        ],
        "description": "Undo a match. A payment matched to an invoice, or a line posted by an import template, gets a reversing journal transaction dated date (default: today) and the invoice paid amount and payment status are restored; a line linked to a payment-provider settlement is only unlinked. The line returns to status new.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "transactionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "transactionId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankAccountId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "amount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "counterpartyName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "counterpartyIban": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "description": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "externalId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "new",
                        "matched"
                      ]
                    },
                    "matchedDocumentType": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "matchedDocumentId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "bankAccountId",
                    "date",
                    "amount",
                    "currency",
                    "counterpartyName",
                    "counterpartyIban",
                    "description",
                    "externalId",
                    "status",
                    "matchedDocumentType",
                    "matchedDocumentId",
                    "journalTransactionId",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankTransactionsUnmatch",
        "summary": "Bank transactions unmatch",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "transactionsUnmatch"
      }
    },
    "/v1/bank/transactions/record": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "bankAccountId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "amount": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 500,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "documentType": {
                    "type": "string",
                    "enum": [
                      "sale_invoice",
                      "purchase_invoice"
                    ]
                  },
                  "documentId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "bankAccountId",
                  "date",
                  "amount",
                  "documentType",
                  "documentId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankAccountId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "amount": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "counterpartyName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "counterpartyIban": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "description": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "externalId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "new",
                        "matched"
                      ]
                    },
                    "matchedDocumentType": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "matchedDocumentId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "bankAccountId",
                    "date",
                    "amount",
                    "currency",
                    "counterpartyName",
                    "counterpartyIban",
                    "description",
                    "externalId",
                    "status",
                    "matchedDocumentType",
                    "matchedDocumentId",
                    "journalTransactionId",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankTransactionsRecord",
        "summary": "Bank transactions record",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "transactionsRecord"
      }
    },
    "/v1/bank/payments/export": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "bankAccountId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "purchaseInvoiceIds": {
                    "minItems": 1,
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "executionDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "bankAccountId",
                  "purchaseInvoiceIds"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "messageId": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transactionCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "controlSum": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "messageId",
                    "fileName",
                    "transactionCount",
                    "controlSum",
                    "xml"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankPaymentsExport",
        "summary": "Bank payments export",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "paymentsExport"
      }
    },
    "/v1/bank/import-templates/create": {
      "post": {
        "summary": "Create a bank import template (fields default to the type's standard field list)",
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "stripe",
                      "iso20022",
                      "bank_connection"
                    ]
                  },
                  "fields": {
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "accountCode": {
                          "nullable": true,
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "createPartner": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "name"
                      ]
                    }
                  },
                  "metaFields": {
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "invoiceMetaField": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "invoiceVatRatePercent": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "companyMetaField": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "invoiceItemId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "advanceInvoices": {
                    "type": "boolean"
                  },
                  "authorizationOperationTypeId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "payoutOperationTypeId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "commissionOperationTypeId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "lenderMetaField": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "partialRefundLabel": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "fullRefundLabel": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "name",
                  "type"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "stripe",
                        "iso20022",
                        "bank_connection"
                      ]
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createPartner": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "name",
                          "accountCode",
                          "createPartner"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "metaFields": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "invoiceMetaField": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "invoiceVatRatePercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "companyMetaField": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "invoiceItemId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "advanceInvoices": {
                      "type": "boolean"
                    },
                    "authorizationOperationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payoutOperationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "commissionOperationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lenderMetaField": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partialRefundLabel": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fullRefundLabel": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "type",
                    "fields",
                    "metaFields",
                    "invoiceMetaField",
                    "invoiceVatRatePercent",
                    "companyMetaField",
                    "invoiceItemId",
                    "advanceInvoices",
                    "authorizationOperationTypeId",
                    "payoutOperationTypeId",
                    "commissionOperationTypeId",
                    "lenderMetaField",
                    "partialRefundLabel",
                    "fullRefundLabel",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankImportTemplatesCreate",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "importTemplatesCreate"
      }
    },
    "/v1/bank/import-templates/update": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "stripe",
                      "iso20022",
                      "bank_connection"
                    ]
                  },
                  "fields": {
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "accountCode": {
                          "nullable": true,
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "createPartner": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "name"
                      ]
                    }
                  },
                  "metaFields": {
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "invoiceMetaField": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "invoiceVatRatePercent": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,3}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "companyMetaField": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "invoiceItemId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "advanceInvoices": {
                    "type": "boolean"
                  },
                  "authorizationOperationTypeId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "payoutOperationTypeId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "commissionOperationTypeId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "lenderMetaField": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "partialRefundLabel": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "fullRefundLabel": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "stripe",
                        "iso20022",
                        "bank_connection"
                      ]
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createPartner": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "name",
                          "accountCode",
                          "createPartner"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "metaFields": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "invoiceMetaField": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "invoiceVatRatePercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "companyMetaField": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "invoiceItemId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "advanceInvoices": {
                      "type": "boolean"
                    },
                    "authorizationOperationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payoutOperationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "commissionOperationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lenderMetaField": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partialRefundLabel": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fullRefundLabel": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "type",
                    "fields",
                    "metaFields",
                    "invoiceMetaField",
                    "invoiceVatRatePercent",
                    "companyMetaField",
                    "invoiceItemId",
                    "advanceInvoices",
                    "authorizationOperationTypeId",
                    "payoutOperationTypeId",
                    "commissionOperationTypeId",
                    "lenderMetaField",
                    "partialRefundLabel",
                    "fullRefundLabel",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankImportTemplatesUpdate",
        "summary": "Bank import templates update",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "importTemplatesUpdate"
      }
    },
    "/v1/bank/import-templates/delete": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "deleted": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankImportTemplatesDelete",
        "summary": "Bank import templates delete",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "importTemplatesDelete"
      }
    },
    "/v1/bank/import-templates/get": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "stripe",
                        "iso20022",
                        "bank_connection"
                      ]
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createPartner": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "name",
                          "accountCode",
                          "createPartner"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "metaFields": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "invoiceMetaField": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "invoiceVatRatePercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "companyMetaField": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "invoiceItemId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "advanceInvoices": {
                      "type": "boolean"
                    },
                    "authorizationOperationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payoutOperationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "commissionOperationTypeId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lenderMetaField": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partialRefundLabel": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fullRefundLabel": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "type",
                    "fields",
                    "metaFields",
                    "invoiceMetaField",
                    "invoiceVatRatePercent",
                    "companyMetaField",
                    "invoiceItemId",
                    "advanceInvoices",
                    "authorizationOperationTypeId",
                    "payoutOperationTypeId",
                    "commissionOperationTypeId",
                    "lenderMetaField",
                    "partialRefundLabel",
                    "fullRefundLabel",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankImportTemplatesGet",
        "summary": "Bank import templates get",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "importTemplatesGet"
      }
    },
    "/v1/bank/import-templates/list": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "stripe",
                              "iso20022",
                              "bank_connection"
                            ]
                          },
                          "fields": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "accountCode": {
                                  "nullable": true,
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "createPartner": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "name",
                                "accountCode",
                                "createPartner"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "metaFields": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "invoiceMetaField": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoiceVatRatePercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "companyMetaField": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "invoiceItemId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "advanceInvoices": {
                            "type": "boolean"
                          },
                          "authorizationOperationTypeId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "payoutOperationTypeId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "commissionOperationTypeId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lenderMetaField": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partialRefundLabel": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fullRefundLabel": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "type",
                          "fields",
                          "metaFields",
                          "invoiceMetaField",
                          "invoiceVatRatePercent",
                          "companyMetaField",
                          "invoiceItemId",
                          "advanceInvoices",
                          "authorizationOperationTypeId",
                          "payoutOperationTypeId",
                          "commissionOperationTypeId",
                          "lenderMetaField",
                          "partialRefundLabel",
                          "fullRefundLabel",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankImportTemplatesList",
        "summary": "Bank import templates list",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "importTemplatesList"
      }
    },
    "/v1/bank/match-rules/create": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "provider": {
                    "default": "stripe",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "pattern": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "payoutIdPrefix": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "bankAccountId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "dateWindowDays": {
                    "default": 5,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 60,
                    "format": "int64"
                  },
                  "isActive": {
                    "default": true,
                    "type": "boolean"
                  }
                },
                "required": [
                  "name",
                  "pattern"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "provider": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "pattern": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payoutIdPrefix": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankAccountId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "dateWindowDays": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "provider",
                    "pattern",
                    "payoutIdPrefix",
                    "bankAccountId",
                    "dateWindowDays",
                    "isActive",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankMatchRulesCreate",
        "summary": "Bank match rules create",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "matchRulesCreate"
      }
    },
    "/v1/bank/match-rules/update": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "provider": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "pattern": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "payoutIdPrefix": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "bankAccountId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "dateWindowDays": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 60,
                    "format": "int64"
                  },
                  "isActive": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "provider": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "pattern": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payoutIdPrefix": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankAccountId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "dateWindowDays": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "isActive": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "provider",
                    "pattern",
                    "payoutIdPrefix",
                    "bankAccountId",
                    "dateWindowDays",
                    "isActive",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankMatchRulesUpdate",
        "summary": "Bank match rules update",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "matchRulesUpdate"
      }
    },
    "/v1/bank/match-rules/delete": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankMatchRulesDelete",
        "summary": "Bank match rules delete",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "matchRulesDelete"
      }
    },
    "/v1/bank/match-rules/list": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "provider": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "pattern": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "payoutIdPrefix": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "bankAccountId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "dateWindowDays": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "isActive": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "provider",
                          "pattern",
                          "payoutIdPrefix",
                          "bankAccountId",
                          "dateWindowDays",
                          "isActive",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankMatchRulesList",
        "summary": "Bank match rules list",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "matchRulesList"
      }
    },
    "/v1/bank/mandates/create": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "iban": {
                    "type": "string",
                    "minLength": 15,
                    "maxLength": 40,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "bic": {
                    "type": "string",
                    "minLength": 8,
                    "maxLength": 11,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "scheme": {
                    "default": "CORE",
                    "type": "string",
                    "enum": [
                      "CORE",
                      "B2B"
                    ]
                  },
                  "sequenceType": {
                    "default": "recurrent",
                    "type": "string",
                    "enum": [
                      "recurrent",
                      "one_off"
                    ]
                  },
                  "signatureDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "reference": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9/\\-?:().,'+ ]{1,35}$"
                  },
                  "debtorName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 1000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "partnerId",
                  "iban",
                  "signatureDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "reference": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "scheme": {
                      "type": "string",
                      "enum": [
                        "CORE",
                        "B2B"
                      ]
                    },
                    "sequenceType": {
                      "type": "string",
                      "enum": [
                        "recurrent",
                        "one_off"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "cancelled",
                        "completed"
                      ]
                    },
                    "debtorName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "iban": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bic": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "signatureDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "collectionsCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "lastCollectionDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "expiresOn": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "cancelledAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "reference",
                    "scheme",
                    "sequenceType",
                    "status",
                    "debtorName",
                    "iban",
                    "bic",
                    "signatureDate",
                    "collectionsCount",
                    "lastCollectionDate",
                    "expiresOn",
                    "cancelledAt",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankMandatesCreate",
        "summary": "Bank mandates create",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "mandatesCreate"
      }
    },
    "/v1/bank/mandates/update": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "bic": {
                    "type": "string",
                    "minLength": 8,
                    "maxLength": 11,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "debtorName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 70,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "notes": {
                    "type": "string",
                    "maxLength": 1000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "reference": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "scheme": {
                      "type": "string",
                      "enum": [
                        "CORE",
                        "B2B"
                      ]
                    },
                    "sequenceType": {
                      "type": "string",
                      "enum": [
                        "recurrent",
                        "one_off"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "cancelled",
                        "completed"
                      ]
                    },
                    "debtorName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "iban": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bic": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "signatureDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "collectionsCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "lastCollectionDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "expiresOn": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "cancelledAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "reference",
                    "scheme",
                    "sequenceType",
                    "status",
                    "debtorName",
                    "iban",
                    "bic",
                    "signatureDate",
                    "collectionsCount",
                    "lastCollectionDate",
                    "expiresOn",
                    "cancelledAt",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankMandatesUpdate",
        "summary": "Bank mandates update",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "mandatesUpdate"
      }
    },
    "/v1/bank/mandates/cancel": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "reference": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "scheme": {
                      "type": "string",
                      "enum": [
                        "CORE",
                        "B2B"
                      ]
                    },
                    "sequenceType": {
                      "type": "string",
                      "enum": [
                        "recurrent",
                        "one_off"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "cancelled",
                        "completed"
                      ]
                    },
                    "debtorName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "iban": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bic": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "signatureDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "collectionsCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "lastCollectionDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "expiresOn": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "cancelledAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "reference",
                    "scheme",
                    "sequenceType",
                    "status",
                    "debtorName",
                    "iban",
                    "bic",
                    "signatureDate",
                    "collectionsCount",
                    "lastCollectionDate",
                    "expiresOn",
                    "cancelledAt",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankMandatesCancel",
        "summary": "Bank mandates cancel",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "mandatesCancel"
      }
    },
    "/v1/bank/mandates/get": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "reference": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "scheme": {
                      "type": "string",
                      "enum": [
                        "CORE",
                        "B2B"
                      ]
                    },
                    "sequenceType": {
                      "type": "string",
                      "enum": [
                        "recurrent",
                        "one_off"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "cancelled",
                        "completed"
                      ]
                    },
                    "debtorName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "iban": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bic": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "signatureDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "collectionsCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "lastCollectionDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "expiresOn": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "cancelledAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "notes": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "partnerId",
                    "reference",
                    "scheme",
                    "sequenceType",
                    "status",
                    "debtorName",
                    "iban",
                    "bic",
                    "signatureDate",
                    "collectionsCount",
                    "lastCollectionDate",
                    "expiresOn",
                    "cancelledAt",
                    "notes",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankMandatesGet",
        "summary": "Bank mandates get",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "mandatesGet"
      }
    },
    "/v1/bank/mandates/list": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "reference": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "scheme": {
                            "type": "string",
                            "enum": [
                              "CORE",
                              "B2B"
                            ]
                          },
                          "sequenceType": {
                            "type": "string",
                            "enum": [
                              "recurrent",
                              "one_off"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "cancelled",
                              "completed"
                            ]
                          },
                          "debtorName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "iban": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "bic": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "signatureDate": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "collectionsCount": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "lastCollectionDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "expiresOn": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "cancelledAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "partnerId",
                          "reference",
                          "scheme",
                          "sequenceType",
                          "status",
                          "debtorName",
                          "iban",
                          "bic",
                          "signatureDate",
                          "collectionsCount",
                          "lastCollectionDate",
                          "expiresOn",
                          "cancelledAt",
                          "notes",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankMandatesList",
        "summary": "Bank mandates list",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "mandatesList"
      }
    },
    "/v1/bank/direct-debits/export": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "bankAccountId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "saleInvoiceIds": {
                    "minItems": 1,
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "collectionDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "bankAccountId",
                  "saleInvoiceIds"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "messageId": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "transactionCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "controlSum": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "xml": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "messageId",
                    "fileName",
                    "transactionCount",
                    "controlSum",
                    "xml"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankDirectDebitsExport",
        "summary": "Bank direct debits export",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "directDebitsExport"
      }
    },
    "/v1/bank/transactions/suggest-matches": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "transactionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "limit": {
                    "default": 5,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 20,
                    "format": "int64"
                  }
                },
                "required": [
                  "transactionId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "suggestions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "documentType": {
                            "type": "string",
                            "enum": [
                              "sale_invoice",
                              "purchase_invoice"
                            ]
                          },
                          "documentId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "number": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "grossTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "remaining": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "score": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "reasons": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          }
                        },
                        "required": [
                          "documentType",
                          "documentId",
                          "number",
                          "partnerName",
                          "currency",
                          "grossTotal",
                          "remaining",
                          "score",
                          "reasons"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "suggestions"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankTransactionsSuggestMatches",
        "summary": "Bank transactions suggest matches",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "transactionsSuggestMatches"
      }
    },
    "/v1/bank/settlements/import": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "bankAccountId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "provider": {
                    "default": "stripe",
                    "type": "string",
                    "enum": [
                      "stripe"
                    ]
                  },
                  "content": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 20000000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "bankAccountId",
                  "content"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "format": {
                      "type": "string",
                      "enum": [
                        "payout_reconciliation",
                        "unified_payments"
                      ]
                    },
                    "imported": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "updated": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "skipped": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "skippedUnassigned": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "skippedPayoutRows": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "skippedNotSettled": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "batches": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "bankAccountId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "provider": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "payoutId": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "payoutDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "grossTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "feeTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "netTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fxRate": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "imported",
                              "posted"
                            ]
                          },
                          "journalTransactionId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "bankTransactionId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineCount": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "matchedCount": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "unmatchedCount": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "bankAccountId",
                          "provider",
                          "payoutId",
                          "payoutDate",
                          "currency",
                          "grossTotal",
                          "feeTotal",
                          "netTotal",
                          "fxRate",
                          "status",
                          "journalTransactionId",
                          "bankTransactionId",
                          "lineCount",
                          "matchedCount",
                          "unmatchedCount",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "format",
                    "imported",
                    "updated",
                    "skipped",
                    "skippedUnassigned",
                    "skippedPayoutRows",
                    "skippedNotSettled",
                    "batches"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankSettlementsImport",
        "summary": "Bank settlements import",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "settlementsImport"
      }
    },
    "/v1/bank/settlements/list": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "bankAccountId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "provider": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "payoutId": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "payoutDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "grossTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "feeTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "netTotal": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fxRate": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "imported",
                              "posted"
                            ]
                          },
                          "journalTransactionId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "bankTransactionId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lineCount": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "matchedCount": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "unmatchedCount": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "bankAccountId",
                          "provider",
                          "payoutId",
                          "payoutDate",
                          "currency",
                          "grossTotal",
                          "feeTotal",
                          "netTotal",
                          "fxRate",
                          "status",
                          "journalTransactionId",
                          "bankTransactionId",
                          "lineCount",
                          "matchedCount",
                          "unmatchedCount",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankSettlementsList",
        "summary": "Bank settlements list",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "settlementsList"
      }
    },
    "/v1/bank/settlements/get": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankAccountId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "provider": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payoutId": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payoutDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "feeTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fxRate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "imported",
                        "posted"
                      ]
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lineCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "matchedCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "unmatchedCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "externalId": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "category": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "gross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fee": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "net": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "description": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sourceId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "chargeId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "commissionPercent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "commissionAmount": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "reference": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "matchedInvoiceId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "matchStatus": {
                            "type": "string",
                            "enum": [
                              "unmatched",
                              "matched",
                              "manual"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "externalId",
                          "category",
                          "date",
                          "gross",
                          "fee",
                          "net",
                          "description",
                          "sourceId",
                          "chargeId",
                          "commissionPercent",
                          "commissionAmount",
                          "reference",
                          "matchedInvoiceId",
                          "matchStatus"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "bankAccountId",
                    "provider",
                    "payoutId",
                    "payoutDate",
                    "currency",
                    "grossTotal",
                    "feeTotal",
                    "netTotal",
                    "fxRate",
                    "status",
                    "journalTransactionId",
                    "bankTransactionId",
                    "lineCount",
                    "matchedCount",
                    "unmatchedCount",
                    "createdAt",
                    "updatedAt",
                    "lines"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankSettlementsGet",
        "summary": "Bank settlements get",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "settlementsGet"
      }
    },
    "/v1/bank/settlements/match": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "lineId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "invoiceId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "lineId",
                  "invoiceId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "externalId": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "category": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "gross": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fee": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "net": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "description": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sourceId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "chargeId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "commissionPercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "commissionAmount": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "reference": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "matchedInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "matchStatus": {
                      "type": "string",
                      "enum": [
                        "unmatched",
                        "matched",
                        "manual"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "externalId",
                    "category",
                    "date",
                    "gross",
                    "fee",
                    "net",
                    "description",
                    "sourceId",
                    "chargeId",
                    "commissionPercent",
                    "commissionAmount",
                    "reference",
                    "matchedInvoiceId",
                    "matchStatus"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankSettlementsMatch",
        "summary": "Bank settlements match",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "settlementsMatch"
      }
    },
    "/v1/bank/settlements/commission": {
      "post": {
        "summary": "Set what the marketplace keeps from one settlement line, as a rate or as an amount",
        "tags": [
          "bank"
        ],
        "description": "A line with its own rate or amount is split with that value when the batch is posted. A line without one falls back to the commissionPercent given to the posting call, and without that the amount goes to the suspense account. Send both fields as null to clear the line back to the fallback.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "lineId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "commissionPercent": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^(100(\\.00?)?|\\d{1,2}(\\.\\d{1,2})?)$"
                  },
                  "commissionAmount": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,13}(\\.\\d{1,4})?$",
                    "example": "121.0000"
                  }
                },
                "required": [
                  "lineId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "externalId": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "category": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "gross": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fee": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "net": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "description": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sourceId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "chargeId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "commissionPercent": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "commissionAmount": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "reference": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "matchedInvoiceId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "matchStatus": {
                      "type": "string",
                      "enum": [
                        "unmatched",
                        "matched",
                        "manual"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "externalId",
                    "category",
                    "date",
                    "gross",
                    "fee",
                    "net",
                    "description",
                    "sourceId",
                    "chargeId",
                    "commissionPercent",
                    "commissionAmount",
                    "reference",
                    "matchedInvoiceId",
                    "matchStatus"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankSettlementsCommission",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "settlementsCommission"
      }
    },
    "/v1/bank/settlements/link": {
      "post": {
        "tags": [
          "bank"
        ],
        "description": "Attach the incoming bank-statement line that carries this payout to the settlement batch.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "bankTransactionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id",
                  "bankTransactionId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankAccountId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "provider": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payoutId": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payoutDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "feeTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fxRate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "imported",
                        "posted"
                      ]
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lineCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "matchedCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "unmatchedCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "bankAccountId",
                    "provider",
                    "payoutId",
                    "payoutDate",
                    "currency",
                    "grossTotal",
                    "feeTotal",
                    "netTotal",
                    "fxRate",
                    "status",
                    "journalTransactionId",
                    "bankTransactionId",
                    "lineCount",
                    "matchedCount",
                    "unmatchedCount",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankSettlementsLink",
        "summary": "Bank settlements link",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "settlementsLink"
      }
    },
    "/v1/bank/settlements/unlink": {
      "post": {
        "tags": [
          "bank"
        ],
        "description": "Detach the bank-statement line from the settlement batch and return the line to unmatched.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankAccountId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "provider": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payoutId": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payoutDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "feeTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fxRate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "imported",
                        "posted"
                      ]
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lineCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "matchedCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "unmatchedCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "bankAccountId",
                    "provider",
                    "payoutId",
                    "payoutDate",
                    "currency",
                    "grossTotal",
                    "feeTotal",
                    "netTotal",
                    "fxRate",
                    "status",
                    "journalTransactionId",
                    "bankTransactionId",
                    "lineCount",
                    "matchedCount",
                    "unmatchedCount",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankSettlementsUnlink",
        "summary": "Bank settlements unlink",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "settlementsUnlink"
      }
    },
    "/v1/bank/settlements/post": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "date": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "commissionPercent": {
                    "type": "string",
                    "pattern": "^(100(\\.00?)?|\\d{1,2}(\\.\\d{1,2})?)$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankAccountId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "provider": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payoutId": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payoutDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "grossTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "feeTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netTotal": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fxRate": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "imported",
                        "posted"
                      ]
                    },
                    "journalTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankTransactionId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lineCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "matchedCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "unmatchedCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "summary": {
                      "type": "object",
                      "properties": {
                        "receivableApplied": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "commissionAmount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "sellerAmount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "feeAmount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "suspenseAmount": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "fxRate": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "exchangeDifference": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "receivableApplied",
                        "commissionAmount",
                        "sellerAmount",
                        "feeAmount",
                        "suspenseAmount",
                        "fxRate",
                        "exchangeDifference"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "bankAccountId",
                    "provider",
                    "payoutId",
                    "payoutDate",
                    "currency",
                    "grossTotal",
                    "feeTotal",
                    "netTotal",
                    "fxRate",
                    "status",
                    "journalTransactionId",
                    "bankTransactionId",
                    "lineCount",
                    "matchedCount",
                    "unmatchedCount",
                    "createdAt",
                    "updatedAt",
                    "warnings",
                    "summary"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankSettlementsPost",
        "summary": "Bank settlements post",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "settlementsPost"
      }
    },
    "/v1/bank/feeds/banks/list": {
      "post": {
        "summary": "List the PSD2 banks (ASPSPs) available to connect",
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "country": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "provider": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "banks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "country": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "logoUrl": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "psuTypes": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "business",
                                "personal"
                              ]
                            }
                          },
                          "maxConsentDays": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "name",
                          "country",
                          "logoUrl",
                          "psuTypes",
                          "maxConsentDays"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "provider",
                    "banks"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankFeedsBanksList",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "feedsBanksList"
      }
    },
    "/v1/bank/feeds/connections/start": {
      "post": {
        "summary": "Begin bank authorization; redirect the user to the returned URL",
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "aspspName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "aspspCountry": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "psuType": {
                    "default": "business",
                    "type": "string",
                    "enum": [
                      "business",
                      "personal"
                    ]
                  },
                  "redirectUrl": {
                    "type": "string",
                    "maxLength": 500,
                    "format": "uri"
                  },
                  "validForDays": {
                    "default": 90,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 180,
                    "format": "int64"
                  },
                  "language": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 2,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "aspspName",
                  "aspspCountry"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "connectionId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "reference": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "url": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "connectionId",
                    "reference",
                    "url",
                    "expiresAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankFeedsConnectionsStart",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "feedsConnectionsStart"
      }
    },
    "/v1/bank/feeds/connections/complete": {
      "post": {
        "summary": "Exchange the redirect code for a session and store the bank accounts it exposes",
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reference": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 60,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4000,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "reference",
                  "code"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "provider": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "aspspName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "aspspCountry": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "psuType": {
                      "type": "string",
                      "enum": [
                        "business",
                        "personal"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "active",
                        "expired",
                        "revoked",
                        "error"
                      ]
                    },
                    "reference": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "consentExpiresAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lastSyncedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "error": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "accounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "connectionId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "bankAccountId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "importTemplateId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "syncSchedule": {
                            "type": "string",
                            "enum": [
                              "manual",
                              "daily",
                              "weekly",
                              "monthly"
                            ]
                          },
                          "externalId": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "iban": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "product": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "syncFrom": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lastSyncedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "connectionId",
                          "bankAccountId",
                          "importTemplateId",
                          "syncSchedule",
                          "externalId",
                          "iban",
                          "currency",
                          "name",
                          "product",
                          "syncFrom",
                          "lastSyncedAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "provider",
                    "aspspName",
                    "aspspCountry",
                    "psuType",
                    "status",
                    "reference",
                    "consentExpiresAt",
                    "lastSyncedAt",
                    "error",
                    "createdAt",
                    "updatedAt",
                    "accounts"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankFeedsConnectionsComplete",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "feedsConnectionsComplete"
      }
    },
    "/v1/bank/feeds/connections/get": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "provider": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "aspspName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "aspspCountry": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "psuType": {
                      "type": "string",
                      "enum": [
                        "business",
                        "personal"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "active",
                        "expired",
                        "revoked",
                        "error"
                      ]
                    },
                    "reference": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "consentExpiresAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lastSyncedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "error": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "accounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "connectionId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "bankAccountId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "importTemplateId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "syncSchedule": {
                            "type": "string",
                            "enum": [
                              "manual",
                              "daily",
                              "weekly",
                              "monthly"
                            ]
                          },
                          "externalId": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "iban": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "currency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "product": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "syncFrom": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lastSyncedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "connectionId",
                          "bankAccountId",
                          "importTemplateId",
                          "syncSchedule",
                          "externalId",
                          "iban",
                          "currency",
                          "name",
                          "product",
                          "syncFrom",
                          "lastSyncedAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "provider",
                    "aspspName",
                    "aspspCountry",
                    "psuType",
                    "status",
                    "reference",
                    "consentExpiresAt",
                    "lastSyncedAt",
                    "error",
                    "createdAt",
                    "updatedAt",
                    "accounts"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankFeedsConnectionsGet",
        "summary": "Bank feeds connections get",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "feedsConnectionsGet"
      }
    },
    "/v1/bank/feeds/connections/list": {
      "post": {
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "provider": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "aspspName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "aspspCountry": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "psuType": {
                            "type": "string",
                            "enum": [
                              "business",
                              "personal"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "active",
                              "expired",
                              "revoked",
                              "error"
                            ]
                          },
                          "reference": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "consentExpiresAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "lastSyncedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "error": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "provider",
                          "aspspName",
                          "aspspCountry",
                          "psuType",
                          "status",
                          "reference",
                          "consentExpiresAt",
                          "lastSyncedAt",
                          "error",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankFeedsConnectionsList",
        "summary": "Bank feeds connections list",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "feedsConnectionsList"
      }
    },
    "/v1/bank/feeds/connections/delete": {
      "post": {
        "summary": "Revoke the consent at the bank and drop the stored connection",
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankFeedsConnectionsDelete",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "feedsConnectionsDelete"
      }
    },
    "/v1/bank/feeds/accounts/link": {
      "post": {
        "summary": "Point a bank-feed account at a ledger bank account so its transactions can be synced",
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "bankAccountId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "createBankAccount": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "accountCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 10,
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "required": [
                      "name"
                    ]
                  },
                  "syncFrom": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "connectionId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankAccountId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "importTemplateId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "syncSchedule": {
                      "type": "string",
                      "enum": [
                        "manual",
                        "daily",
                        "weekly",
                        "monthly"
                      ]
                    },
                    "externalId": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "iban": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "product": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "syncFrom": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lastSyncedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "connectionId",
                    "bankAccountId",
                    "importTemplateId",
                    "syncSchedule",
                    "externalId",
                    "iban",
                    "currency",
                    "name",
                    "product",
                    "syncFrom",
                    "lastSyncedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankFeedsAccountsLink",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "feedsAccountsLink"
      }
    },
    "/v1/bank/feeds/accounts/configure": {
      "post": {
        "summary": "Choose the import template applied on sync and how often the account is synced automatically",
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "importTemplateId": {
                    "nullable": true,
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "syncSchedule": {
                    "type": "string",
                    "enum": [
                      "manual",
                      "daily",
                      "weekly",
                      "monthly"
                    ]
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "connectionId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankAccountId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "importTemplateId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "syncSchedule": {
                      "type": "string",
                      "enum": [
                        "manual",
                        "daily",
                        "weekly",
                        "monthly"
                      ]
                    },
                    "externalId": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "iban": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "product": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "syncFrom": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "lastSyncedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "connectionId",
                    "bankAccountId",
                    "importTemplateId",
                    "syncSchedule",
                    "externalId",
                    "iban",
                    "currency",
                    "name",
                    "product",
                    "syncFrom",
                    "lastSyncedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankFeedsAccountsConfigure",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "feedsAccountsConfigure"
      }
    },
    "/v1/bank/feeds/sync": {
      "post": {
        "summary": "Pull new transactions from the bank into the ledger; emits bank_feed.synced",
        "tags": [
          "bank"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "connectionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "feedAccountId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "dateFrom": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "dateTo": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "connectionId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "connectionId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "imported": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "skipped": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "posted": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "partnersCreated": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "invoicesCreated": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "invoicesLinked": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "paymentsMatched": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "accounts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "feedAccountId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "imported": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "fetched": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "feedAccountId",
                          "imported",
                          "fetched"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "connectionId",
                    "imported",
                    "skipped",
                    "posted",
                    "partnersCreated",
                    "invoicesCreated",
                    "invoicesLinked",
                    "paymentsMatched",
                    "warnings",
                    "accounts"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "bankFeedsSync",
        "x-fern-sdk-group-name": "bank",
        "x-fern-sdk-method-name": "feedsSync"
      }
    },
    "/v1/files/upload": {
      "post": {
        "tags": [
          "files"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "entity": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "entityId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "fileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "mimeType": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 150,
                    "description": "Stored as the bare media type; only PNG, JPEG, GIF, WebP and PDF files are shown in the browser, every other type is downloaded",
                    "pattern": "^[\\s\\S]*$"
                  },
                  "content": {
                    "type": "string",
                    "minLength": 1,
                    "description": "Base64-encoded file content",
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "entity",
                  "fileName",
                  "mimeType",
                  "content"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "entity": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "entityId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "mimeType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sizeBytes": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "sha256": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "storageKey": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "entity",
                    "entityId",
                    "fileName",
                    "mimeType",
                    "sizeBytes",
                    "sha256",
                    "storageKey",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "filesUpload",
        "summary": "Files upload",
        "x-fern-sdk-group-name": "files",
        "x-fern-sdk-method-name": "upload"
      }
    },
    "/v1/files/get": {
      "post": {
        "tags": [
          "files"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "entity": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "entityId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "mimeType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sizeBytes": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "sha256": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "storageKey": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "content": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "entity",
                    "entityId",
                    "fileName",
                    "mimeType",
                    "sizeBytes",
                    "sha256",
                    "storageKey",
                    "createdAt",
                    "content"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "filesGet",
        "summary": "Files get",
        "x-fern-sdk-group-name": "files",
        "x-fern-sdk-method-name": "get"
      }
    },
    "/v1/files/list": {
      "post": {
        "tags": [
          "files"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "entity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "entityId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "mimeType": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sizeBytes": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "sha256": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "storageKey": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "entity",
                          "entityId",
                          "fileName",
                          "mimeType",
                          "sizeBytes",
                          "sha256",
                          "storageKey",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "filesList",
        "summary": "Files list",
        "x-fern-sdk-group-name": "files",
        "x-fern-sdk-method-name": "list"
      }
    },
    "/v1/files/delete": {
      "post": {
        "tags": [
          "files"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "filesDelete",
        "summary": "Files delete",
        "x-fern-sdk-group-name": "files",
        "x-fern-sdk-method-name": "delete"
      }
    },
    "/v1/reports/trial-balance": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "accountId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "asset",
                              "liability",
                              "equity",
                              "income",
                              "expense"
                            ]
                          },
                          "opening": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "debit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "credit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "closing": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "accountId",
                          "code",
                          "name",
                          "type",
                          "opening",
                          "debit",
                          "credit",
                          "closing"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "debit": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "credit": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "debit",
                        "credit"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "fromDate",
                    "toDate",
                    "rows",
                    "totals"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsTrialBalance",
        "summary": "Reports trial balance",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "trialBalance"
      }
    },
    "/v1/reports/size-category": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 2100,
                    "format": "int64"
                  }
                },
                "required": [
                  "year"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "year": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "criteria": {
                      "type": "object",
                      "properties": {
                        "totalAssets": {
                          "type": "number"
                        },
                        "netTurnover": {
                          "type": "number"
                        },
                        "avgEmployees": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "totalAssets",
                        "netTurnover",
                        "avgEmployees"
                      ],
                      "additionalProperties": false
                    },
                    "category": {
                      "type": "string",
                      "enum": [
                        "micro",
                        "small",
                        "medium",
                        "large"
                      ]
                    },
                    "thresholds": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "totalAssets": {
                            "type": "number"
                          },
                          "netTurnover": {
                            "type": "number"
                          },
                          "employees": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "totalAssets",
                          "netTurnover",
                          "employees"
                        ],
                        "additionalProperties": false
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "year",
                    "criteria",
                    "category",
                    "thresholds"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsSizeCategory",
        "summary": "Reports size category",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "sizeCategory"
      }
    },
    "/v1/reports/financial-statements": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "category": {
                    "type": "string",
                    "enum": [
                      "micro",
                      "small",
                      "medium",
                      "large"
                    ]
                  }
                },
                "required": [
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "category": {
                      "type": "string",
                      "enum": [
                        "micro",
                        "small",
                        "medium",
                        "large"
                      ]
                    },
                    "layout": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "requiredStatements": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "asOf": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "balanceSheet": {
                      "type": "object",
                      "properties": {
                        "nonCurrentAssets": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "currentAssets": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "totalAssets": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "equity": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "ofWhichResult": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "liabilities": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "totalEquityAndLiabilities": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "balanced": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "nonCurrentAssets",
                        "currentAssets",
                        "totalAssets",
                        "equity",
                        "ofWhichResult",
                        "liabilities",
                        "totalEquityAndLiabilities",
                        "balanced"
                      ],
                      "additionalProperties": false
                    },
                    "profitLoss": {
                      "type": "object",
                      "properties": {
                        "fromDate": {
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "toDate": {
                          "type": "string",
                          "format": "date",
                          "example": "2026-07-01"
                        },
                        "revenue": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "expenses": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "netResult": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "fromDate",
                        "toDate",
                        "revenue",
                        "expenses",
                        "netResult"
                      ],
                      "additionalProperties": false
                    },
                    "balanceSheetDetail": {
                      "type": "object",
                      "properties": {
                        "nonCurrentAssets": {
                          "type": "object",
                          "properties": {
                            "intangible": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "tangible": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "financial": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "other": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "total": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "intangible",
                            "tangible",
                            "financial",
                            "other",
                            "total"
                          ],
                          "additionalProperties": false
                        },
                        "currentAssets": {
                          "type": "object",
                          "properties": {
                            "inventories": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "receivables": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "otherCurrent": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "cash": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "total": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "inventories",
                            "receivables",
                            "otherCurrent",
                            "cash",
                            "total"
                          ],
                          "additionalProperties": false
                        },
                        "equity": {
                          "type": "object",
                          "properties": {
                            "capital": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "reserves": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "retainedEarnings": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "otherEquity": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "periodResult": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "total": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "capital",
                            "reserves",
                            "retainedEarnings",
                            "otherEquity",
                            "periodResult",
                            "total"
                          ],
                          "additionalProperties": false
                        },
                        "liabilities": {
                          "type": "object",
                          "properties": {
                            "nonCurrent": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "current": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "other": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "total": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "nonCurrent",
                            "current",
                            "other",
                            "total"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "nonCurrentAssets",
                        "currentAssets",
                        "equity",
                        "liabilities"
                      ],
                      "additionalProperties": false
                    },
                    "profitLossDetail": {
                      "type": "object",
                      "properties": {
                        "salesRevenue": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "costOfSales": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "grossProfit": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "sellingExpenses": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "adminExpenses": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "operatingProfit": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "otherActivityResult": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "financialActivityResult": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "profitBeforeTax": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "incomeTax": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "netProfit": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "salesRevenue",
                        "costOfSales",
                        "grossProfit",
                        "sellingExpenses",
                        "adminExpenses",
                        "operatingProfit",
                        "otherActivityResult",
                        "financialActivityResult",
                        "profitBeforeTax",
                        "incomeTax",
                        "netProfit"
                      ],
                      "additionalProperties": false
                    },
                    "equityChanges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "opening": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "increase": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "decrease": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "closing": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "code",
                          "name",
                          "opening",
                          "increase",
                          "decrease",
                          "closing"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "cashFlow": {
                      "type": "object",
                      "properties": {
                        "openingCash": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "operating": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "investing": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "financing": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "netChange": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "closingCash": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "openingCash",
                        "operating",
                        "investing",
                        "financing",
                        "netChange",
                        "closingCash"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "category",
                    "layout",
                    "requiredStatements",
                    "asOf",
                    "balanceSheet",
                    "profitLoss"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsFinancialStatements",
        "summary": "Reports financial statements",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "financialStatements"
      }
    },
    "/v1/reports/general-journal": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 200,
                    "format": "int64"
                  }
                },
                "required": [
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "description": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentType": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "entries": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "accountCode": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "accountName": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "debit": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "credit": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "accountCode",
                                "accountName",
                                "debit",
                                "credit"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "id",
                          "date",
                          "description",
                          "documentType",
                          "documentId",
                          "entries"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "total",
                    "page",
                    "pageSize",
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsGeneralJournal",
        "summary": "Reports general journal",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "generalJournal"
      }
    },
    "/v1/reports/gl-detail": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "accountCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 10,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "accountCode",
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "account": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "name": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "type": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "code",
                        "name",
                        "type"
                      ],
                      "additionalProperties": false
                    },
                    "opening": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "closing": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "date": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "description": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentType": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "journalTransactionId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "debit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "credit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "balance": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "date",
                          "description",
                          "documentType",
                          "documentId",
                          "journalTransactionId",
                          "debit",
                          "credit",
                          "balance"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "account",
                    "opening",
                    "closing",
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsGlDetail",
        "summary": "Reports gl detail",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "glDetail"
      }
    },
    "/v1/reports/partner-balances": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "partnerId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "receivable": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "payable": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "net": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "partnerId",
                          "partnerName",
                          "receivable",
                          "payable",
                          "net"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsPartnerBalances",
        "summary": "Reports partner balances",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "partnerBalances"
      }
    },
    "/v1/reports/debt-aging": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "side": {
                    "default": "receivables",
                    "type": "string",
                    "enum": [
                      "receivables",
                      "payables"
                    ]
                  },
                  "asOf": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "asOf": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "side": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "partnerId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "current": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "d1to30": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "d31to60": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "d61to90": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "over90": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "total": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "partnerId",
                          "partnerName",
                          "current",
                          "d1to30",
                          "d31to60",
                          "d61to90",
                          "over90",
                          "total"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "asOf",
                    "side",
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsDebtAging",
        "summary": "Reports debt aging",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "debtAging"
      }
    },
    "/v1/reports/monthly-summary": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "months": {
                    "default": 12,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 36,
                    "format": "int64"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "year": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "month": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "receivables": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "payables": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "revenue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "expenses": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "netResult": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "year",
                          "month",
                          "receivables",
                          "payables",
                          "revenue",
                          "expenses",
                          "netResult"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsMonthlySummary",
        "summary": "Reports monthly summary",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "monthlySummary"
      }
    },
    "/v1/reports/stock-balance": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "asOf": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "asOf"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "asOf": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "itemId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "warehouseId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "value": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "itemId",
                          "itemName",
                          "warehouseId",
                          "quantity",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "totalValue": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "asOf",
                    "rows",
                    "totalValue"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsStockBalance",
        "summary": "Reports stock balance",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "stockBalance"
      }
    },
    "/v1/reports/stock-movement": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "itemId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "itemId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "openingQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "openingValue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "inQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "inValue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "outQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "outValue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "closingQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "closingValue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "itemId",
                          "itemName",
                          "openingQty",
                          "openingValue",
                          "inQty",
                          "inValue",
                          "outQty",
                          "outValue",
                          "closingQty",
                          "closingValue"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "fromDate",
                    "toDate",
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsStockMovement",
        "summary": "Reports stock movement",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "stockMovement"
      }
    },
    "/v1/reports/vat-summary": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "side": {
                    "default": "sales",
                    "type": "string",
                    "enum": [
                      "sales",
                      "purchases"
                    ]
                  }
                },
                "required": [
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "side": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "net": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "gross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "vatRatePercent",
                          "net",
                          "vat",
                          "gross",
                          "documents"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "net": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "vat": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "gross": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "net",
                        "vat",
                        "gross"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "side",
                    "fromDate",
                    "toDate",
                    "rows",
                    "totals"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsVatSummary",
        "summary": "Reports vat summary",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "vatSummary"
      }
    },
    "/v1/reports/cash-flow": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "openingCash": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "closingCash": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "netChange": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "operating": {
                      "type": "object",
                      "properties": {
                        "inflow": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "outflow": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "net": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "name": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "inflow": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "outflow": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "code",
                              "name",
                              "inflow",
                              "outflow"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "inflow",
                        "outflow",
                        "net",
                        "rows"
                      ],
                      "additionalProperties": false
                    },
                    "investing": {
                      "type": "object",
                      "properties": {
                        "inflow": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "outflow": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "net": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "name": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "inflow": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "outflow": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "code",
                              "name",
                              "inflow",
                              "outflow"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "inflow",
                        "outflow",
                        "net",
                        "rows"
                      ],
                      "additionalProperties": false
                    },
                    "financing": {
                      "type": "object",
                      "properties": {
                        "inflow": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "outflow": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "net": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "rows": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "name": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "inflow": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "outflow": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "code",
                              "name",
                              "inflow",
                              "outflow"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "inflow",
                        "outflow",
                        "net",
                        "rows"
                      ],
                      "additionalProperties": false
                    },
                    "balanced": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "fromDate",
                    "toDate",
                    "openingCash",
                    "closingCash",
                    "netChange",
                    "operating",
                    "investing",
                    "financing",
                    "balanced"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsCashFlow",
        "summary": "Reports cash flow",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "cashFlow"
      }
    },
    "/v1/reports/stock-aging": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "asOf": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "asOf"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "asOf": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "itemId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "warehouseId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "d0to30Qty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "d0to30Value": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "d31to60Qty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "d31to60Value": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "d61to90Qty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "d61to90Value": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "over90Qty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "over90Value": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "totalQty": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "totalValue": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "itemId",
                          "itemName",
                          "warehouseId",
                          "d0to30Qty",
                          "d0to30Value",
                          "d31to60Qty",
                          "d31to60Value",
                          "d61to90Qty",
                          "d61to90Value",
                          "over90Qty",
                          "over90Value",
                          "totalQty",
                          "totalValue"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "totalValue": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "asOf",
                    "rows",
                    "totalValue"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsStockAging",
        "summary": "Reports stock aging",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "stockAging"
      }
    },
    "/v1/reports/stock-shortage": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "itemId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "warehouseId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "onHand": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "reserved": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "shortage": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "itemId",
                          "itemName",
                          "warehouseId",
                          "onHand",
                          "reserved",
                          "shortage"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsStockShortage",
        "summary": "Reports stock shortage",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "stockShortage"
      }
    },
    "/v1/reports/sie": {
      "post": {
        "tags": [
          "reports"
        ],
        "description": "Export the ledger of one financial year as an SIE file (the Swedish standard accounting interchange format, specification 4B). The file carries the chart of accounts, the opening and closing balance of every balance sheet account and the turnover of every result account for the year and the year before it, and, when asked for, every posted voucher of the year with its lines. Cost centres travel as dimension 1 and projects as dimension 6. Services that build a Swedish annual report read this file.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "includeTransactions": {
                    "default": true,
                    "type": "boolean"
                  }
                },
                "required": [
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contentType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "data": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "accounts": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "vouchers": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "fileName",
                    "contentType",
                    "data",
                    "accounts",
                    "vouchers",
                    "source",
                    "warnings",
                    "notes"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsSie",
        "summary": "Reports sie",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "sie"
      }
    },
    "/v1/reports/datev": {
      "post": {
        "tags": [
          "reports"
        ],
        "description": "Export the posted ledger of a period as a DATEV Buchungsstapel file (DATEV format, category 21, version 700). Every transaction becomes one or more bookings of an amount between an account and a contra account; a transaction with more than two lines is split into pairs whose totals match it. The file is semicolon separated and written in the Windows-1252 character set DATEV expects.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "consultantNumber": {
                    "type": "string",
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "clientNumber": {
                    "type": "string",
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contentType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "data": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bookings": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "fileName",
                    "contentType",
                    "data",
                    "bookings",
                    "source",
                    "warnings",
                    "notes"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsDatev",
        "summary": "Reports datev",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "datev"
      }
    },
    "/v1/reports/fec": {
      "post": {
        "tags": [
          "reports"
        ],
        "description": "Export the posted ledger of a period as a French FEC file (fichier des écritures comptables, order of 29 July 2013). One line per journal entry line, with the eighteen fields the order names, in their order, after a header line. Tab separated, UTF-8, comma as the decimal separator.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fileName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "contentType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "data": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "rows": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "source": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "required": [
                    "fileName",
                    "contentType",
                    "data",
                    "rows",
                    "source",
                    "warnings",
                    "notes"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsFec",
        "summary": "Reports fec",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "fec"
      }
    },
    "/v1/reports/eu-purchases": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "countryCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "net": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "countryCode",
                          "vatRatePercent",
                          "net",
                          "vat",
                          "documents"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "net": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "vat": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "net",
                        "vat"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "fromDate",
                    "toDate",
                    "rows",
                    "totals"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsEuPurchases",
        "summary": "Reports eu purchases",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "euPurchases"
      }
    },
    "/v1/reports/vat-detail": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "side": {
                    "default": "sales",
                    "type": "string",
                    "enum": [
                      "sales",
                      "purchases"
                    ]
                  }
                },
                "required": [
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "side": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "documentId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documentNumber": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "date": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "partnerName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "net": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "gross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "documentId",
                          "documentNumber",
                          "date",
                          "partnerName",
                          "vatRatePercent",
                          "net",
                          "vat",
                          "gross"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "net": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "vat": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "gross": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "net",
                        "vat",
                        "gross"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "side",
                    "fromDate",
                    "toDate",
                    "rows",
                    "totals"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsVatDetail",
        "summary": "Reports vat detail",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "vatDetail"
      }
    },
    "/v1/reports/pos-sales": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "reportId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "reportNumber": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "net": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "gross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "cash": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "card": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "cogs": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "reportId",
                          "reportNumber",
                          "date",
                          "net",
                          "vat",
                          "gross",
                          "cash",
                          "card",
                          "cogs"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "byRate": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "net": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "vatRatePercent",
                          "net",
                          "vat"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "net": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "vat": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "gross": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "cash": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "card": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "cogs": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "net",
                        "vat",
                        "gross",
                        "cash",
                        "card",
                        "cogs"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "fromDate",
                    "toDate",
                    "rows",
                    "byRate",
                    "totals"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsPosSales",
        "summary": "Reports pos sales",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "posSales"
      }
    },
    "/v1/reports/online-sales": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "channel": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "orders": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "fulfilled": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "cancelled": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "open": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "net": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "gross": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "channel",
                          "orders",
                          "fulfilled",
                          "cancelled",
                          "open",
                          "net",
                          "gross"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "fromDate",
                    "toDate",
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsOnlineSales",
        "summary": "Reports online sales",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "onlineSales"
      }
    },
    "/v1/reports/oss": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "countryCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatRatePercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "net": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vat": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "countryCode",
                          "vatRatePercent",
                          "net",
                          "vat",
                          "documents"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "totals": {
                      "type": "object",
                      "properties": {
                        "net": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "vat": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "net",
                        "vat"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "fromDate",
                    "toDate",
                    "rows",
                    "totals"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsOss",
        "summary": "Reports oss",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "oss"
      }
    },
    "/v1/reports/advance-reconciliation": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "employeeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "firstName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lastName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "opening": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "issued": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "returned": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "closing": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "employeeId",
                          "firstName",
                          "lastName",
                          "opening",
                          "issued",
                          "returned",
                          "closing"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "fromDate",
                    "toDate",
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsAdvanceReconciliation",
        "summary": "Reports advance reconciliation",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "advanceReconciliation"
      }
    },
    "/v1/reports/write-off-acts": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "warehouseId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "movementId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "documentType": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "warehouseCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "quantity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "totalCost": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "notes": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "movementId",
                          "date",
                          "documentType",
                          "itemName",
                          "warehouseCode",
                          "quantity",
                          "totalCost",
                          "notes"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "totalCost": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "fromDate",
                    "toDate",
                    "rows",
                    "totalCost"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsWriteOffActs",
        "summary": "Reports write off acts",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "writeOffActs"
      }
    },
    "/v1/reports/cost-centers": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "costCenterId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "income": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "expenses": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "result": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "costCenterId",
                          "code",
                          "name",
                          "income",
                          "expenses",
                          "result"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "fromDate",
                    "toDate",
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsCostCenters",
        "summary": "Reports cost centers",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "costCenters"
      }
    },
    "/v1/reports/cost-center-activity": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "costCenterId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "fromDate",
                  "toDate",
                  "costCenterId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "costCenter": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "code": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "name": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "id",
                        "code",
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "accountCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "accountName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "debit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "credit": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "net": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "accountCode",
                          "accountName",
                          "debit",
                          "credit",
                          "net"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "costCenter",
                    "fromDate",
                    "toDate",
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsCostCenterActivity",
        "summary": "Reports cost center activity",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "costCenterActivity"
      }
    },
    "/v1/reports/cost-center-items": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "costCenterId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "costCenterCode": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "costCenterName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "itemName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "net": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "costCenterCode",
                          "costCenterName",
                          "itemName",
                          "net"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "fromDate",
                    "toDate",
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsCostCenterItems",
        "summary": "Reports cost center items",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "costCenterItems"
      }
    },
    "/v1/reports/jobs/create": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reportType": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "params": {
                    "default": {},
                    "type": "object",
                    "additionalProperties": {},
                    "maxProperties": 100
                  },
                  "formats": {
                    "default": [
                      "json"
                    ],
                    "minItems": 1,
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "json",
                        "xlsx",
                        "pdf"
                      ]
                    }
                  }
                },
                "required": [
                  "reportType"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "reportType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "params": {},
                    "formats": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "queued",
                        "running",
                        "completed",
                        "failed"
                      ]
                    },
                    "error": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "outputs": {
                      "nullable": true,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "format": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sizeBytes": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "format",
                          "fileId",
                          "fileName",
                          "sizeBytes"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "startedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "finishedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "reportType",
                    "params",
                    "formats",
                    "status",
                    "error",
                    "outputs",
                    "createdAt",
                    "startedAt",
                    "finishedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsJobsCreate",
        "summary": "Reports jobs create",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "jobsCreate"
      }
    },
    "/v1/reports/jobs/get": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "reportType": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "params": {},
                    "formats": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "queued",
                        "running",
                        "completed",
                        "failed"
                      ]
                    },
                    "error": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "outputs": {
                      "nullable": true,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "format": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "fileName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sizeBytes": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "format",
                          "fileId",
                          "fileName",
                          "sizeBytes"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "startedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "finishedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "reportType",
                    "params",
                    "formats",
                    "status",
                    "error",
                    "outputs",
                    "createdAt",
                    "startedAt",
                    "finishedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsJobsGet",
        "summary": "Reports jobs get",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "jobsGet"
      }
    },
    "/v1/reports/jobs/list": {
      "post": {
        "tags": [
          "reports"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "page": {
                    "default": 1,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  },
                  "pageSize": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  },
                  "sort": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dir": {
                          "default": "asc",
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        }
                      },
                      "required": [
                        "field"
                      ]
                    }
                  },
                  "filter": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "contains",
                            "gte",
                            "lte",
                            "in"
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "minItems": 1,
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  {
                                    "type": "number"
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      },
                      "required": [
                        "field",
                        "op",
                        "value"
                      ]
                    }
                  },
                  "totals": {
                    "description": "Numeric fields to sum over every row matching the filter (not only the current page)",
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "reportType": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "params": {},
                          "formats": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "running",
                              "completed",
                              "failed"
                            ]
                          },
                          "error": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "outputs": {
                            "nullable": true,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "format": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "fileId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64,
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "fileName": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "sizeBytes": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991,
                                  "format": "int64"
                                }
                              },
                              "required": [
                                "format",
                                "fileId",
                                "fileName",
                                "sizeBytes"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "startedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "finishedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "reportType",
                          "params",
                          "formats",
                          "status",
                          "error",
                          "outputs",
                          "createdAt",
                          "startedAt",
                          "finishedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "page": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pageSize": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    }
                  },
                  "required": [
                    "rows",
                    "page",
                    "pageSize",
                    "total"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "reportsJobsList",
        "summary": "Reports jobs list",
        "x-fern-sdk-group-name": "reports",
        "x-fern-sdk-method-name": "jobsList"
      }
    },
    "/v1/consolidation/groups/create": {
      "post": {
        "tags": [
          "consolidation"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "presentationCurrency": {
                    "type": "string",
                    "pattern": "^[A-Z]{3}$"
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "presentationCurrency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "memberCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "presentationCurrency",
                    "memberCount",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "consolidationGroupsCreate",
        "summary": "Consolidation groups create",
        "x-fern-sdk-group-name": "consolidation",
        "x-fern-sdk-method-name": "groupsCreate"
      }
    },
    "/v1/consolidation/groups/list": {
      "post": {
        "tags": [
          "consolidation"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "presentationCurrency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "memberCount": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "presentationCurrency",
                          "memberCount",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "consolidationGroupsList",
        "summary": "Consolidation groups list",
        "x-fern-sdk-group-name": "consolidation",
        "x-fern-sdk-method-name": "groupsList"
      }
    },
    "/v1/consolidation/groups/get": {
      "post": {
        "tags": [
          "consolidation"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "groupId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "groupId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "presentationCurrency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "memberCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "members": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "memberCompanyId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "baseCurrency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ownershipPercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "method": {
                            "type": "string",
                            "enum": [
                              "full",
                              "proportional",
                              "equity"
                            ]
                          }
                        },
                        "required": [
                          "memberCompanyId",
                          "name",
                          "baseCurrency",
                          "ownershipPercent",
                          "method"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "presentationCurrency",
                    "memberCount",
                    "createdAt",
                    "updatedAt",
                    "members"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "consolidationGroupsGet",
        "summary": "Consolidation groups get",
        "x-fern-sdk-group-name": "consolidation",
        "x-fern-sdk-method-name": "groupsGet"
      }
    },
    "/v1/consolidation/groups/update": {
      "post": {
        "tags": [
          "consolidation"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "groupId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "presentationCurrency": {
                    "type": "string",
                    "pattern": "^[A-Z]{3}$"
                  }
                },
                "required": [
                  "groupId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "presentationCurrency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "memberCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "presentationCurrency",
                    "memberCount",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "consolidationGroupsUpdate",
        "summary": "Consolidation groups update",
        "x-fern-sdk-group-name": "consolidation",
        "x-fern-sdk-method-name": "groupsUpdate"
      }
    },
    "/v1/consolidation/groups/delete": {
      "post": {
        "tags": [
          "consolidation"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "groupId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "groupId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "consolidationGroupsDelete",
        "summary": "Consolidation groups delete",
        "x-fern-sdk-group-name": "consolidation",
        "x-fern-sdk-method-name": "groupsDelete"
      }
    },
    "/v1/consolidation/members/add": {
      "post": {
        "tags": [
          "consolidation"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "groupId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "memberCompanyId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "ownershipPercent": {
                    "default": 100,
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "method": {
                    "default": "full",
                    "type": "string",
                    "enum": [
                      "full",
                      "proportional",
                      "equity"
                    ]
                  }
                },
                "required": [
                  "groupId",
                  "memberCompanyId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "memberCompanyId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "baseCurrency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "ownershipPercent": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "method": {
                      "type": "string",
                      "enum": [
                        "full",
                        "proportional",
                        "equity"
                      ]
                    }
                  },
                  "required": [
                    "memberCompanyId",
                    "name",
                    "baseCurrency",
                    "ownershipPercent",
                    "method"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "consolidationMembersAdd",
        "summary": "Consolidation members add",
        "x-fern-sdk-group-name": "consolidation",
        "x-fern-sdk-method-name": "membersAdd"
      }
    },
    "/v1/consolidation/members/remove": {
      "post": {
        "tags": [
          "consolidation"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "groupId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "memberCompanyId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "groupId",
                  "memberCompanyId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "consolidationMembersRemove",
        "summary": "Consolidation members remove",
        "x-fern-sdk-group-name": "consolidation",
        "x-fern-sdk-method-name": "membersRemove"
      }
    },
    "/v1/consolidation/intercompany/candidates": {
      "post": {
        "tags": [
          "consolidation"
        ],
        "description": "Partners in member companies that look like other members of the same group (matched on company code or VAT code), with any existing intercompany link. Confirming a candidate via intercompany/links/set enables invoice mirroring.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "groupId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "groupId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "memberCompanyId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "memberName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "matchesCompanyId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "matchesCompanyName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "matchedOn": {
                            "type": "string",
                            "enum": [
                              "code",
                              "vatCode"
                            ]
                          },
                          "linkId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "memberCompanyId",
                          "memberName",
                          "partnerId",
                          "partnerName",
                          "partnerCode",
                          "matchesCompanyId",
                          "matchesCompanyName",
                          "matchedOn",
                          "linkId"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "consolidationIntercompanyCandidates",
        "summary": "Consolidation intercompany candidates",
        "x-fern-sdk-group-name": "consolidation",
        "x-fern-sdk-method-name": "intercompanyCandidates"
      }
    },
    "/v1/consolidation/intercompany/links/set": {
      "post": {
        "tags": [
          "consolidation"
        ],
        "description": "Confirm that a partner record in one member company represents another member company of the group. Once links exist in both directions, issuing an intercompany sale invoice automatically creates the matching draft purchase invoice in the counterparty.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "groupId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "partnerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "counterpartyCompanyId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "groupId",
                  "partnerId",
                  "counterpartyCompanyId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "groupId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "companyId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "partnerId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "counterpartyCompanyId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "groupId",
                    "companyId",
                    "partnerId",
                    "counterpartyCompanyId"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "consolidationIntercompanyLinksSet",
        "summary": "Consolidation intercompany links set",
        "x-fern-sdk-group-name": "consolidation",
        "x-fern-sdk-method-name": "intercompanyLinksSet"
      }
    },
    "/v1/consolidation/intercompany/links/list": {
      "post": {
        "tags": [
          "consolidation"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "groupId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "groupId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "companyId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "companyName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "counterpartyCompanyId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "counterpartyCompanyName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "companyId",
                          "companyName",
                          "partnerId",
                          "partnerName",
                          "counterpartyCompanyId",
                          "counterpartyCompanyName",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "consolidationIntercompanyLinksList",
        "summary": "Consolidation intercompany links list",
        "x-fern-sdk-group-name": "consolidation",
        "x-fern-sdk-method-name": "intercompanyLinksList"
      }
    },
    "/v1/consolidation/intercompany/links/remove": {
      "post": {
        "tags": [
          "consolidation"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "groupId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "groupId",
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "consolidationIntercompanyLinksRemove",
        "summary": "Consolidation intercompany links remove",
        "x-fern-sdk-group-name": "consolidation",
        "x-fern-sdk-method-name": "intercompanyLinksRemove"
      }
    },
    "/v1/consolidation/intercompany/report": {
      "post": {
        "tags": [
          "consolidation"
        ],
        "description": "Intercompany reconciliation for a period: every issued intercompany sale invoice with its mirrored or manually recorded counterpart, unmatched documents on both sides, and per-currency totals with differences. Confirmed pairs are the basis for consolidation eliminations.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "groupId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "groupId",
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "directions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "sellerCompanyId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "sellerName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "buyerCompanyId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "buyerName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "documents": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "sourceInvoiceId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64,
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "fullNumber": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "issueDate": {
                                  "type": "string",
                                  "format": "date",
                                  "example": "2026-07-01"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "invoice",
                                    "credit_note"
                                  ]
                                },
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "grossTotal": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "paymentStatus": {
                                  "type": "string",
                                  "enum": [
                                    "unpaid",
                                    "partial",
                                    "paid"
                                  ]
                                },
                                "match": {
                                  "type": "string",
                                  "enum": [
                                    "mirrored",
                                    "matched_by_number",
                                    "missing"
                                  ]
                                },
                                "counterpart": {
                                  "nullable": true,
                                  "type": "object",
                                  "properties": {
                                    "invoiceId": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 64,
                                      "pattern": "^[\\s\\S]*$"
                                    },
                                    "status": {
                                      "type": "string",
                                      "enum": [
                                        "draft",
                                        "registered"
                                      ]
                                    },
                                    "paymentStatus": {
                                      "type": "string",
                                      "enum": [
                                        "unpaid",
                                        "partial",
                                        "paid"
                                      ]
                                    },
                                    "grossTotal": {
                                      "type": "string",
                                      "pattern": "^[\\s\\S]*$"
                                    },
                                    "amountsMatch": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "invoiceId",
                                    "status",
                                    "paymentStatus",
                                    "grossTotal",
                                    "amountsMatch"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "sourceInvoiceId",
                                "fullNumber",
                                "issueDate",
                                "type",
                                "currency",
                                "grossTotal",
                                "paymentStatus",
                                "match",
                                "counterpart"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "unmatchedPurchases": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "invoiceId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64,
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "documentNumber": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "documentDate": {
                                  "type": "string",
                                  "format": "date",
                                  "example": "2026-07-01"
                                },
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "grossTotal": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "draft",
                                    "registered"
                                  ]
                                }
                              },
                              "required": [
                                "invoiceId",
                                "documentNumber",
                                "documentDate",
                                "currency",
                                "grossTotal",
                                "status"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "totals": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "salesGross": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "purchasesGross": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "grossDifference": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "openReceivable": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "openPayable": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "openDifference": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "currency",
                                "salesGross",
                                "purchasesGross",
                                "grossDifference",
                                "openReceivable",
                                "openPayable",
                                "openDifference"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "sellerCompanyId",
                          "sellerName",
                          "buyerCompanyId",
                          "buyerName",
                          "documents",
                          "unmatchedPurchases",
                          "totals"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "fromDate",
                    "toDate",
                    "directions"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "consolidationIntercompanyReport",
        "summary": "Consolidation intercompany report",
        "x-fern-sdk-group-name": "consolidation",
        "x-fern-sdk-method-name": "intercompanyReport"
      }
    },
    "/v1/consolidation/report": {
      "post": {
        "tags": [
          "consolidation"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "groupId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "fromDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "toDate": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "category": {
                    "default": "large",
                    "type": "string",
                    "enum": [
                      "micro",
                      "small",
                      "medium",
                      "large"
                    ]
                  },
                  "eliminations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "amount": {
                          "type": "string",
                          "pattern": "^-?\\d+(\\.\\d+)?$"
                        },
                        "note": {
                          "type": "string",
                          "maxLength": 200,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "code",
                        "amount"
                      ]
                    }
                  }
                },
                "required": [
                  "groupId",
                  "fromDate",
                  "toDate"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "presentationCurrency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "fromDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "toDate": {
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "category": {
                      "type": "string",
                      "enum": [
                        "micro",
                        "small",
                        "medium",
                        "large"
                      ]
                    },
                    "statements": {
                      "type": "object",
                      "properties": {
                        "category": {
                          "type": "string",
                          "enum": [
                            "micro",
                            "small",
                            "medium",
                            "large"
                          ]
                        },
                        "layout": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "requiredStatements": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "asOf": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "balanceSheet": {
                          "type": "object",
                          "properties": {
                            "nonCurrentAssets": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "currentAssets": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "totalAssets": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "equity": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "ofWhichResult": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "liabilities": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "totalEquityAndLiabilities": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "balanced": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "nonCurrentAssets",
                            "currentAssets",
                            "totalAssets",
                            "equity",
                            "ofWhichResult",
                            "liabilities",
                            "totalEquityAndLiabilities",
                            "balanced"
                          ],
                          "additionalProperties": false
                        },
                        "profitLoss": {
                          "type": "object",
                          "properties": {
                            "fromDate": {
                              "type": "string",
                              "format": "date",
                              "example": "2026-07-01"
                            },
                            "toDate": {
                              "type": "string",
                              "format": "date",
                              "example": "2026-07-01"
                            },
                            "revenue": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "expenses": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "netResult": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "fromDate",
                            "toDate",
                            "revenue",
                            "expenses",
                            "netResult"
                          ],
                          "additionalProperties": false
                        },
                        "balanceSheetDetail": {
                          "type": "object",
                          "properties": {
                            "nonCurrentAssets": {
                              "type": "object",
                              "properties": {
                                "intangible": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "tangible": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "financial": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "other": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "total": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "intangible",
                                "tangible",
                                "financial",
                                "other",
                                "total"
                              ],
                              "additionalProperties": false
                            },
                            "currentAssets": {
                              "type": "object",
                              "properties": {
                                "inventories": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "receivables": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "otherCurrent": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "cash": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "total": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "inventories",
                                "receivables",
                                "otherCurrent",
                                "cash",
                                "total"
                              ],
                              "additionalProperties": false
                            },
                            "equity": {
                              "type": "object",
                              "properties": {
                                "capital": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "reserves": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "retainedEarnings": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "otherEquity": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "periodResult": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "total": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "capital",
                                "reserves",
                                "retainedEarnings",
                                "otherEquity",
                                "periodResult",
                                "total"
                              ],
                              "additionalProperties": false
                            },
                            "liabilities": {
                              "type": "object",
                              "properties": {
                                "nonCurrent": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "current": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "other": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                },
                                "total": {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]*$"
                                }
                              },
                              "required": [
                                "nonCurrent",
                                "current",
                                "other",
                                "total"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "nonCurrentAssets",
                            "currentAssets",
                            "equity",
                            "liabilities"
                          ],
                          "additionalProperties": false
                        },
                        "profitLossDetail": {
                          "type": "object",
                          "properties": {
                            "salesRevenue": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "costOfSales": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "grossProfit": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "sellingExpenses": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "adminExpenses": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "operatingProfit": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "otherActivityResult": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "financialActivityResult": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "profitBeforeTax": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "incomeTax": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "netProfit": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "required": [
                            "salesRevenue",
                            "costOfSales",
                            "grossProfit",
                            "sellingExpenses",
                            "adminExpenses",
                            "operatingProfit",
                            "otherActivityResult",
                            "financialActivityResult",
                            "profitBeforeTax",
                            "incomeTax",
                            "netProfit"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "category",
                        "layout",
                        "requiredStatements",
                        "asOf",
                        "balanceSheet",
                        "profitLoss"
                      ],
                      "additionalProperties": false
                    },
                    "trialBalance": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "type": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "closing": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "period": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "code",
                          "type",
                          "closing",
                          "period"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "nonControllingInterest": {
                      "type": "object",
                      "properties": {
                        "equity": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "result": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "equity",
                        "result"
                      ],
                      "additionalProperties": false
                    },
                    "equityMethod": {
                      "type": "object",
                      "properties": {
                        "investmentsInAssociates": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "shareOfAssociatesResult": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "investmentsInAssociates",
                        "shareOfAssociatesResult"
                      ],
                      "additionalProperties": false
                    },
                    "members": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "companyId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "baseCurrency": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ownershipPercent": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "method": {
                            "type": "string",
                            "enum": [
                              "full",
                              "proportional",
                              "equity"
                            ]
                          },
                          "fxFactor": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "rateFrom": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "rateTo": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "totalAssets": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "netEquity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "periodResult": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "companyId",
                          "name",
                          "baseCurrency",
                          "ownershipPercent",
                          "method",
                          "fxFactor",
                          "rateFrom",
                          "rateTo",
                          "totalAssets",
                          "netEquity",
                          "periodResult"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "eliminations": {
                      "type": "object",
                      "properties": {
                        "applied": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "amount": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              },
                              "note": {
                                "type": "string",
                                "pattern": "^[\\s\\S]*$"
                              }
                            },
                            "required": [
                              "code",
                              "amount"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "balanced": {
                          "type": "boolean"
                        },
                        "net": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "applied",
                        "balanced",
                        "net"
                      ],
                      "additionalProperties": false
                    },
                    "cashFlow": {
                      "type": "object",
                      "properties": {
                        "openingCash": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "closingCash": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "netChange": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "operating": {
                          "type": "object",
                          "properties": {
                            "inflow": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "outflow": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "net": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "rows": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "code": {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "name": {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "inflow": {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "outflow": {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  }
                                },
                                "required": [
                                  "code",
                                  "name",
                                  "inflow",
                                  "outflow"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "inflow",
                            "outflow",
                            "net",
                            "rows"
                          ],
                          "additionalProperties": false
                        },
                        "investing": {
                          "type": "object",
                          "properties": {
                            "inflow": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "outflow": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "net": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "rows": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "code": {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "name": {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "inflow": {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "outflow": {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  }
                                },
                                "required": [
                                  "code",
                                  "name",
                                  "inflow",
                                  "outflow"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "inflow",
                            "outflow",
                            "net",
                            "rows"
                          ],
                          "additionalProperties": false
                        },
                        "financing": {
                          "type": "object",
                          "properties": {
                            "inflow": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "outflow": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "net": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            },
                            "rows": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "code": {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "name": {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "inflow": {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  },
                                  "outflow": {
                                    "type": "string",
                                    "pattern": "^[\\s\\S]*$"
                                  }
                                },
                                "required": [
                                  "code",
                                  "name",
                                  "inflow",
                                  "outflow"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "inflow",
                            "outflow",
                            "net",
                            "rows"
                          ],
                          "additionalProperties": false
                        },
                        "balanced": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "openingCash",
                        "closingCash",
                        "netChange",
                        "operating",
                        "investing",
                        "financing",
                        "balanced"
                      ],
                      "additionalProperties": false
                    },
                    "intercompanyCandidates": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "memberCompanyId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "memberName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "partnerCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "matchesCompanyId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "matchesCompanyName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "matchedOn": {
                            "type": "string",
                            "enum": [
                              "code",
                              "vatCode"
                            ]
                          }
                        },
                        "required": [
                          "memberCompanyId",
                          "memberName",
                          "partnerId",
                          "partnerName",
                          "partnerCode",
                          "matchesCompanyId",
                          "matchesCompanyName",
                          "matchedOn"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "presentationCurrency",
                    "fromDate",
                    "toDate",
                    "category",
                    "statements",
                    "trialBalance",
                    "nonControllingInterest",
                    "equityMethod",
                    "members",
                    "eliminations",
                    "cashFlow",
                    "intercompanyCandidates"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "consolidationReport",
        "summary": "Consolidation report",
        "x-fern-sdk-group-name": "consolidation",
        "x-fern-sdk-method-name": "report"
      }
    },
    "/v1/public/integration-requests": {
      "post": {
        "tags": [
          "public"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "integration": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "company": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "email": {
                    "type": "string",
                    "maxLength": 200,
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "details": {
                    "type": "string",
                    "maxLength": 2000,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "website": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "integration",
                  "name",
                  "email"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "received": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "received"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "publicIntegrationRequests",
        "summary": "Public integration requests",
        "x-fern-sdk-group-name": "public",
        "x-fern-sdk-method-name": "integrationRequests"
      }
    },
    "/v1/public/pay/{token}": {
      "get": {
        "tags": [
          "public"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 16,
              "maxLength": 64,
              "pattern": "^[\\s\\S]*$"
            },
            "in": "path",
            "name": "token",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "publicPay",
        "summary": "Public pay",
        "x-fern-sdk-group-name": "public",
        "x-fern-sdk-method-name": "pay"
      }
    },
    "/v1/billing/account/get": {
      "post": {
        "tags": [
          "billing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "plan": {
                      "type": "string",
                      "enum": [
                        "starter",
                        "business",
                        "scale"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "trial",
                        "active",
                        "suspended"
                      ]
                    },
                    "balanceCents": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "trialEndsAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "firstTopUpAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lastChargedDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "paymentsConfigured": {
                      "type": "boolean"
                    },
                    "hasPaymentAccount": {
                      "type": "boolean"
                    },
                    "hasSubscription": {
                      "type": "boolean"
                    },
                    "paymentFailedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "paymentFailedInvoiceUrl": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "monthToDate": {
                      "type": "object",
                      "properties": {
                        "from": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "to": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "apiRequests": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "ocrPages": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "fileBytes": {
                          "type": "number"
                        },
                        "databaseBytes": {
                          "type": "number"
                        },
                        "archivedCompanies": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "estimatedTodayCents": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "from",
                        "to",
                        "apiRequests",
                        "ocrPages",
                        "fileBytes",
                        "databaseBytes",
                        "archivedCompanies",
                        "estimatedTodayCents"
                      ],
                      "additionalProperties": false
                    },
                    "plans": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "monthlyFeeEur": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "includedRequests": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "requestOverageEur": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "includedDatabaseBytes": {
                            "type": "number"
                          },
                          "includedFileBytes": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "monthlyFeeEur",
                          "includedRequests",
                          "requestOverageEur",
                          "includedDatabaseBytes",
                          "includedFileBytes"
                        ],
                        "additionalProperties": false
                      },
                      "maxProperties": 100
                    },
                    "topUp": {
                      "type": "object",
                      "properties": {
                        "minCents": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "maxCents": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "minCents",
                        "maxCents"
                      ],
                      "additionalProperties": false
                    },
                    "trialDays": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    }
                  },
                  "required": [
                    "plan",
                    "status",
                    "balanceCents",
                    "trialEndsAt",
                    "firstTopUpAt",
                    "lastChargedDate",
                    "paymentsConfigured",
                    "hasPaymentAccount",
                    "hasSubscription",
                    "paymentFailedAt",
                    "paymentFailedInvoiceUrl",
                    "monthToDate",
                    "plans",
                    "topUp",
                    "trialDays"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "billingAccountGet",
        "summary": "Billing account get",
        "x-fern-sdk-group-name": "billing",
        "x-fern-sdk-method-name": "accountGet"
      }
    },
    "/v1/billing/account/set-plan": {
      "post": {
        "tags": [
          "billing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "plan": {
                    "type": "string",
                    "enum": [
                      "starter",
                      "business",
                      "scale"
                    ]
                  }
                },
                "required": [
                  "plan"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "plan": {
                      "type": "string",
                      "enum": [
                        "starter",
                        "business",
                        "scale"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "trial",
                        "active",
                        "suspended"
                      ]
                    },
                    "balanceCents": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "trialEndsAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "firstTopUpAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "lastChargedDate": {
                      "nullable": true,
                      "type": "string",
                      "format": "date",
                      "example": "2026-07-01"
                    },
                    "paymentsConfigured": {
                      "type": "boolean"
                    },
                    "hasPaymentAccount": {
                      "type": "boolean"
                    },
                    "hasSubscription": {
                      "type": "boolean"
                    },
                    "paymentFailedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "paymentFailedInvoiceUrl": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "monthToDate": {
                      "type": "object",
                      "properties": {
                        "from": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "to": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "apiRequests": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "ocrPages": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "fileBytes": {
                          "type": "number"
                        },
                        "databaseBytes": {
                          "type": "number"
                        },
                        "archivedCompanies": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "estimatedTodayCents": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "from",
                        "to",
                        "apiRequests",
                        "ocrPages",
                        "fileBytes",
                        "databaseBytes",
                        "archivedCompanies",
                        "estimatedTodayCents"
                      ],
                      "additionalProperties": false
                    },
                    "plans": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "monthlyFeeEur": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "includedRequests": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "requestOverageEur": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "includedDatabaseBytes": {
                            "type": "number"
                          },
                          "includedFileBytes": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "monthlyFeeEur",
                          "includedRequests",
                          "requestOverageEur",
                          "includedDatabaseBytes",
                          "includedFileBytes"
                        ],
                        "additionalProperties": false
                      },
                      "maxProperties": 100
                    },
                    "topUp": {
                      "type": "object",
                      "properties": {
                        "minCents": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "maxCents": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "minCents",
                        "maxCents"
                      ],
                      "additionalProperties": false
                    },
                    "trialDays": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    }
                  },
                  "required": [
                    "plan",
                    "status",
                    "balanceCents",
                    "trialEndsAt",
                    "firstTopUpAt",
                    "lastChargedDate",
                    "paymentsConfigured",
                    "hasPaymentAccount",
                    "hasSubscription",
                    "paymentFailedAt",
                    "paymentFailedInvoiceUrl",
                    "monthToDate",
                    "plans",
                    "topUp",
                    "trialDays"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "billingAccountSetPlan",
        "summary": "Billing account set plan",
        "x-fern-sdk-group-name": "billing",
        "x-fern-sdk-method-name": "accountSetPlan"
      }
    },
    "/v1/billing/topup/create": {
      "post": {
        "tags": [
          "billing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amountCents": {
                    "type": "integer",
                    "minimum": 1000,
                    "maximum": 500000,
                    "format": "int64"
                  },
                  "locale": {
                    "default": "en",
                    "type": "string",
                    "enum": [
                      "en",
                      "lt",
                      "de"
                    ]
                  }
                },
                "required": [
                  "amountCents"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sessionId": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "url",
                    "sessionId"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "billingTopupCreate",
        "summary": "Billing topup create",
        "x-fern-sdk-group-name": "billing",
        "x-fern-sdk-method-name": "topupCreate"
      }
    },
    "/v1/billing/portal/create": {
      "post": {
        "tags": [
          "billing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "locale": {
                    "default": "en",
                    "type": "string",
                    "enum": [
                      "en",
                      "lt",
                      "de"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "url"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "billingPortalCreate",
        "summary": "Billing portal create",
        "x-fern-sdk-group-name": "billing",
        "x-fern-sdk-method-name": "portalCreate"
      }
    },
    "/v1/billing/transactions/list": {
      "post": {
        "tags": [
          "billing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "limit": {
                    "default": 100,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "format": "int64"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "trial_grant",
                              "topup",
                              "usage",
                              "activation",
                              "adjustment"
                            ]
                          },
                          "amountCents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "balanceAfterCents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "reference": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "usageDate": {
                            "nullable": true,
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "type",
                          "amountCents",
                          "balanceAfterCents",
                          "description",
                          "reference",
                          "usageDate",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "billingTransactionsList",
        "summary": "Billing transactions list",
        "x-fern-sdk-group-name": "billing",
        "x-fern-sdk-method-name": "transactionsList"
      }
    },
    "/v1/billing/usage/list": {
      "post": {
        "tags": [
          "billing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "to": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  }
                },
                "required": [
                  "from",
                  "to"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "companyId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "example": "2026-07-01"
                          },
                          "metric": {
                            "type": "string",
                            "enum": [
                              "api_request",
                              "ocr_page",
                              "file_storage_bytes",
                              "database_bytes"
                            ]
                          },
                          "quantity": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "companyId",
                          "date",
                          "metric",
                          "quantity"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "billingUsageList",
        "summary": "Billing usage list",
        "x-fern-sdk-group-name": "billing",
        "x-fern-sdk-method-name": "usageList"
      }
    },
    "/v1/account/login-link/request": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 200,
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "locale": {
                    "default": "en",
                    "type": "string",
                    "enum": [
                      "en",
                      "lt",
                      "de"
                    ]
                  },
                  "acceptTerms": {
                    "type": "boolean"
                  },
                  "acceptDpa": {
                    "type": "boolean"
                  },
                  "referralCode": {
                    "type": "string",
                    "minLength": 4,
                    "maxLength": 16,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "email"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sent": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "sent"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountLoginLinkRequest",
        "summary": "Account login link request",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "loginLinkRequest"
      }
    },
    "/v1/account/login-link/consume": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "token"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "user": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "email": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "name": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "plan": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "id",
                        "email",
                        "name",
                        "plan"
                      ],
                      "additionalProperties": false
                    },
                    "isNewUser": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "token",
                    "expiresAt",
                    "user",
                    "isNewUser"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountLoginLinkConsume",
        "summary": "Account login link consume",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "loginLinkConsume"
      }
    },
    "/v1/account/logout": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "loggedOut": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "loggedOut"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountLogout",
        "summary": "Account logout",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "logout"
      }
    },
    "/v1/account/me": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "user": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "email": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "name": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "locale": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "plan": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "isSuperAdmin": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "id",
                        "email",
                        "name",
                        "locale",
                        "plan",
                        "isSuperAdmin"
                      ],
                      "additionalProperties": false
                    },
                    "locale": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "activeCompanyId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "timeZone": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "role": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "billing": {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "trial",
                            "active",
                            "suspended"
                          ]
                        },
                        "plan": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "balanceCents": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "trialEndsAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "payerUserId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "payerEmail": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "isPayer": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "status",
                        "plan",
                        "balanceCents",
                        "trialEndsAt",
                        "payerUserId",
                        "payerEmail",
                        "isPayer"
                      ],
                      "additionalProperties": false
                    },
                    "referralPoints": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "consent": {
                      "type": "object",
                      "properties": {
                        "termsVersion": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "termsAcceptedAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "dpaVersion": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dpaAcceptedAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "currentTermsVersion": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "currentDpaVersion": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "required": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "termsVersion",
                        "termsAcceptedAt",
                        "dpaVersion",
                        "dpaAcceptedAt",
                        "currentTermsVersion",
                        "currentDpaVersion",
                        "required"
                      ],
                      "additionalProperties": false
                    },
                    "companies": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "code": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "vatCode": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "role": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "isSandbox": {
                            "type": "boolean"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "archived",
                              "deleted"
                            ]
                          },
                          "deletedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "code",
                          "vatCode",
                          "role",
                          "isSandbox",
                          "status",
                          "deletedAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "user",
                    "locale",
                    "activeCompanyId",
                    "timeZone",
                    "role",
                    "billing",
                    "referralPoints",
                    "consent",
                    "companies"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountMe",
        "summary": "Account me",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "me"
      }
    },
    "/v1/account/members/list": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "userId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "email": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "role": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "userId",
                          "email",
                          "name",
                          "role",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountMembersList",
        "summary": "Account members list",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "membersList"
      }
    },
    "/v1/account/members/set-role": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "admin",
                      "accountant",
                      "manager",
                      "developer",
                      "viewer"
                    ]
                  }
                },
                "required": [
                  "userId",
                  "role"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "userId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "role": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "userId",
                    "role"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountMembersSetRole",
        "summary": "Account members set role",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "membersSetRole"
      }
    },
    "/v1/account/members/transfer-ownership": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "movePayer": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "userId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ownerUserId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "previousOwnerRole": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "payerUserId": {
                      "nullable": true,
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "ownerUserId",
                    "previousOwnerRole",
                    "payerUserId"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountMembersTransferOwnership",
        "summary": "Account members transfer ownership",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "membersTransferOwnership"
      }
    },
    "/v1/account/members/remove": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "userId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "removed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "removed"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountMembersRemove",
        "summary": "Account members remove",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "membersRemove"
      }
    },
    "/v1/account/invites/create": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 200,
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "admin",
                      "accountant",
                      "manager",
                      "developer",
                      "viewer"
                    ]
                  },
                  "locale": {
                    "default": "en",
                    "type": "string",
                    "enum": [
                      "en",
                      "lt",
                      "de"
                    ]
                  }
                },
                "required": [
                  "email",
                  "role"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "email": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "role": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "emailSent": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "email",
                    "role",
                    "expiresAt",
                    "emailSent"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountInvitesCreate",
        "summary": "Account invites create",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "invitesCreate"
      }
    },
    "/v1/account/invites/list": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "email": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "role": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "expiresAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "expired": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "email",
                          "role",
                          "expiresAt",
                          "createdAt",
                          "expired"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountInvitesList",
        "summary": "Account invites list",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "invitesList"
      }
    },
    "/v1/account/invites/revoke": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "revoked": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "revoked"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountInvitesRevoke",
        "summary": "Account invites revoke",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "invitesRevoke"
      }
    },
    "/v1/account/invites/get": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "token"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "email": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "role": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "companyName": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "expired": {
                      "type": "boolean"
                    },
                    "userExists": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "email",
                    "role",
                    "companyName",
                    "expired",
                    "userExists"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountInvitesGet",
        "summary": "Account invites get",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "invitesGet"
      }
    },
    "/v1/account/invites/accept": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "locale": {
                    "default": "en",
                    "type": "string",
                    "enum": [
                      "en",
                      "lt",
                      "de"
                    ]
                  },
                  "acceptTerms": {
                    "type": "boolean"
                  },
                  "acceptDpa": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "token"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "user": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "email": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "name": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "plan": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "required": [
                        "id",
                        "email",
                        "name",
                        "plan"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "token",
                    "expiresAt",
                    "user"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountInvitesAccept",
        "summary": "Account invites accept",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "invitesAccept"
      }
    },
    "/v1/account/locale/set": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "locale": {
                    "type": "string",
                    "enum": [
                      "en",
                      "lt",
                      "de"
                    ]
                  }
                },
                "required": [
                  "locale"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "locale": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "scope": {
                      "type": "string",
                      "enum": [
                        "membership",
                        "user"
                      ]
                    }
                  },
                  "required": [
                    "locale",
                    "scope"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountLocaleSet",
        "summary": "Account locale set",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "localeSet"
      }
    },
    "/v1/account/companies/create": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "vatCode": {
                    "type": "string",
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "smeExemptionNumber": {
                    "type": "string",
                    "maxLength": 30,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isVatPayer": {
                    "type": "boolean"
                  },
                  "vatPeriod": {
                    "type": "string",
                    "enum": [
                      "monthly",
                      "bimonthly",
                      "quarterly",
                      "semiannual",
                      "annual"
                    ]
                  },
                  "fiscalYearEndMonth": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  },
                  "timeZone": {
                    "type": "string",
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "filingOptions": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "maxProperties": 100
                  },
                  "address": {
                    "type": "object",
                    "properties": {
                      "street": {
                        "type": "string",
                        "maxLength": 300,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "city": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "postalCode": {
                        "type": "string",
                        "maxLength": 20,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "countryCode": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 2,
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "email": {
                    "type": "string",
                    "maxLength": 200,
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "phone": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "iban": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "bankName": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "peppolId": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "sepaCreditorId": {
                    "type": "string",
                    "pattern": "^[A-Za-z]{2}\\d{2}[A-Za-z0-9]{4,31}$"
                  },
                  "defaultInvoiceCurrency": {
                    "type": "string",
                    "pattern": "^[A-Za-z]{3}$"
                  },
                  "legalForm": {
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "registryName": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "incorporatedOn": {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "shareCapital": {
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "accountsKeptBy": {
                    "type": "string",
                    "enum": [
                      "company",
                      "external"
                    ]
                  },
                  "bookkeeperName": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "auditorName": {
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "auditorRegistrationNumber": {
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "auditRequired": {
                    "type": "boolean"
                  },
                  "countryCode": {
                    "default": "LT",
                    "description": "Jurisdiction the company is registered in (immutable after creation)",
                    "type": "string",
                    "enum": [
                      "AT",
                      "BE",
                      "BG",
                      "CY",
                      "CZ",
                      "DE",
                      "DK",
                      "EE",
                      "ES",
                      "FI",
                      "FR",
                      "GR",
                      "HR",
                      "HU",
                      "IE",
                      "IT",
                      "LT",
                      "LU",
                      "LV",
                      "MT",
                      "NL",
                      "PL",
                      "PT",
                      "RO",
                      "SE",
                      "SI",
                      "SK",
                      "IS",
                      "LI",
                      "NO"
                    ]
                  },
                  "baseCurrency": {
                    "description": "Currency the ledger is kept in; defaults to the national currency of countryCode (immutable after creation)",
                    "type": "string",
                    "pattern": "^[A-Za-z]{3}$"
                  },
                  "isSandbox": {
                    "default": false,
                    "description": "Sandbox companies hold test data and are purged immediately on delete (immutable after creation)",
                    "type": "boolean"
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "role": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isSandbox": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "code",
                    "vatCode",
                    "role",
                    "isSandbox"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountCompaniesCreate",
        "summary": "Account companies create",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "companiesCreate"
      }
    },
    "/v1/account/companies/select": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "companyId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "companyId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "activeCompanyId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "activeCompanyId"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountCompaniesSelect",
        "summary": "Account companies select",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "companiesSelect"
      }
    },
    "/v1/account/companies/profile": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "smeExemptionNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isVatPayer": {
                      "type": "boolean"
                    },
                    "isSandbox": {
                      "type": "boolean"
                    },
                    "countryCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "chartTemplate": {
                      "type": "string",
                      "description": "Chart of accounts template the company was seeded with",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "countryChartTemplate": {
                      "type": "string",
                      "description": "Chart of accounts template of the company country",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "baseCurrency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "defaultInvoiceCurrency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "archived",
                        "deleted"
                      ]
                    },
                    "address": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "street": {
                          "type": "string",
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "city": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "postalCode": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "countryCode": {
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 2,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "additionalProperties": false
                    },
                    "email": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "phone": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "iban": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "peppolId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sepaCreditorId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "logoFileId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "legalForm": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "registryName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "incorporatedOn": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "shareCapital": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "accountsKeptBy": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "company",
                        "external"
                      ]
                    },
                    "vatPeriod": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "monthly",
                        "bimonthly",
                        "quarterly",
                        "semiannual",
                        "annual"
                      ]
                    },
                    "fiscalYearEndMonth": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "timeZone": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "filingOptions": {
                      "nullable": true,
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    },
                    "bookkeeperName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "auditorName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "auditorRegistrationNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "auditRequired": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "code",
                    "vatCode",
                    "smeExemptionNumber",
                    "isVatPayer",
                    "isSandbox",
                    "countryCode",
                    "chartTemplate",
                    "countryChartTemplate",
                    "baseCurrency",
                    "defaultInvoiceCurrency",
                    "status",
                    "address",
                    "email",
                    "phone",
                    "iban",
                    "bankName",
                    "peppolId",
                    "sepaCreditorId",
                    "logoFileId",
                    "legalForm",
                    "registryName",
                    "incorporatedOn",
                    "shareCapital",
                    "accountsKeptBy",
                    "vatPeriod",
                    "fiscalYearEndMonth",
                    "timeZone",
                    "filingOptions",
                    "bookkeeperName",
                    "auditorName",
                    "auditorRegistrationNumber",
                    "auditRequired"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountCompaniesProfile",
        "summary": "Account companies profile",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "companiesProfile"
      }
    },
    "/v1/account/companies/update": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 300,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "code": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "vatCode": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 20,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "smeExemptionNumber": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 30,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "isVatPayer": {
                    "type": "boolean"
                  },
                  "vatPeriod": {
                    "nullable": true,
                    "type": "string",
                    "enum": [
                      "monthly",
                      "bimonthly",
                      "quarterly",
                      "semiannual",
                      "annual"
                    ]
                  },
                  "fiscalYearEndMonth": {
                    "nullable": true,
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "format": "int64"
                  },
                  "timeZone": {
                    "type": "string",
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "filingOptions": {
                    "nullable": true,
                    "type": "object",
                    "additionalProperties": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "maxProperties": 100
                  },
                  "address": {
                    "type": "object",
                    "properties": {
                      "street": {
                        "type": "string",
                        "maxLength": 300,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "city": {
                        "type": "string",
                        "maxLength": 100,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "postalCode": {
                        "type": "string",
                        "maxLength": 20,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "countryCode": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 2,
                        "pattern": "^[\\s\\S]*$"
                      }
                    }
                  },
                  "email": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 200,
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "phone": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "iban": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "bankName": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "peppolId": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "sepaCreditorId": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^[A-Za-z]{2}\\d{2}[A-Za-z0-9]{4,31}$"
                  },
                  "defaultInvoiceCurrency": {
                    "type": "string",
                    "pattern": "^[A-Za-z]{3}$"
                  },
                  "legalForm": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "registryName": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "incorporatedOn": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "format": "date",
                    "example": "2026-07-01"
                  },
                  "shareCapital": {
                    "nullable": true,
                    "type": "string",
                    "pattern": "^\\d{1,15}(\\.\\d{1,2})?$",
                    "example": "121.00"
                  },
                  "accountsKeptBy": {
                    "nullable": true,
                    "type": "string",
                    "enum": [
                      "company",
                      "external"
                    ]
                  },
                  "bookkeeperName": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "auditorName": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "auditorRegistrationNumber": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 50,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "auditRequired": {
                    "type": "boolean"
                  },
                  "logo": {
                    "type": "object",
                    "properties": {
                      "fileName": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "mimeType": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 150,
                        "pattern": "^[\\s\\S]*$"
                      },
                      "content": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000000,
                        "description": "Base64-encoded image",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "required": [
                      "fileName",
                      "mimeType",
                      "content"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "code": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "vatCode": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "smeExemptionNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "isVatPayer": {
                      "type": "boolean"
                    },
                    "isSandbox": {
                      "type": "boolean"
                    },
                    "countryCode": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "chartTemplate": {
                      "type": "string",
                      "description": "Chart of accounts template the company was seeded with",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "countryChartTemplate": {
                      "type": "string",
                      "description": "Chart of accounts template of the company country",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "baseCurrency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "defaultInvoiceCurrency": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "archived",
                        "deleted"
                      ]
                    },
                    "address": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "street": {
                          "type": "string",
                          "maxLength": 300,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "city": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "postalCode": {
                          "type": "string",
                          "maxLength": 20,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "countryCode": {
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 2,
                          "pattern": "^[\\s\\S]*$"
                        }
                      },
                      "additionalProperties": false
                    },
                    "email": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "phone": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "iban": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "bankName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "peppolId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "sepaCreditorId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "logoFileId": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "legalForm": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "registryName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "incorporatedOn": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "shareCapital": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "accountsKeptBy": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "company",
                        "external"
                      ]
                    },
                    "vatPeriod": {
                      "nullable": true,
                      "type": "string",
                      "enum": [
                        "monthly",
                        "bimonthly",
                        "quarterly",
                        "semiannual",
                        "annual"
                      ]
                    },
                    "fiscalYearEndMonth": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "timeZone": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "filingOptions": {
                      "nullable": true,
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      },
                      "maxProperties": 100
                    },
                    "bookkeeperName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "auditorName": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "auditorRegistrationNumber": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "auditRequired": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "code",
                    "vatCode",
                    "smeExemptionNumber",
                    "isVatPayer",
                    "isSandbox",
                    "countryCode",
                    "chartTemplate",
                    "countryChartTemplate",
                    "baseCurrency",
                    "defaultInvoiceCurrency",
                    "status",
                    "address",
                    "email",
                    "phone",
                    "iban",
                    "bankName",
                    "peppolId",
                    "sepaCreditorId",
                    "logoFileId",
                    "legalForm",
                    "registryName",
                    "incorporatedOn",
                    "shareCapital",
                    "accountsKeptBy",
                    "vatPeriod",
                    "fiscalYearEndMonth",
                    "timeZone",
                    "filingOptions",
                    "bookkeeperName",
                    "auditorName",
                    "auditorRegistrationNumber",
                    "auditRequired"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountCompaniesUpdate",
        "summary": "Account companies update",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "companiesUpdate"
      }
    },
    "/v1/account/companies/archive": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "companyId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "companyId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "status"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountCompaniesArchive",
        "summary": "Account companies archive",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "companiesArchive"
      }
    },
    "/v1/account/companies/delete": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "companyId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "companyId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "purgeAfter": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "status",
                    "purgeAfter"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountCompaniesDelete",
        "summary": "Account companies delete",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "companiesDelete"
      }
    },
    "/v1/account/companies/activate": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "companyId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "companyId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "status": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "status"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountCompaniesActivate",
        "summary": "Account companies activate",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "companiesActivate"
      }
    },
    "/v1/account/api-keys/create": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "scopes": {
                    "minItems": 1,
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 50,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "expiresInDays": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 730,
                    "format": "int64"
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "scopes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "key": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "expiresAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "scopes",
                    "key",
                    "expiresAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountApiKeysCreate",
        "summary": "Account api keys create",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "apiKeysCreate"
      }
    },
    "/v1/account/api-keys/list": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "name": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "scopes": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "lastUsedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "expiresAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "replacedByKeyId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "revokedAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "scopes",
                          "lastUsedAt",
                          "expiresAt",
                          "replacedByKeyId",
                          "revokedAt",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountApiKeysList",
        "summary": "Account api keys list",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "apiKeysList"
      }
    },
    "/v1/account/api-keys/rotate": {
      "post": {
        "summary": "Issue a replacement for an API key and set the old one to stop working after a short overlap",
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "overlapHours": {
                    "default": 24,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 168,
                    "format": "int64"
                  },
                  "expiresInDays": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 730,
                    "format": "int64"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "scopes": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "key": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "expiresAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "replacedKeyId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "replacedKeyExpiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "scopes",
                    "key",
                    "expiresAt",
                    "replacedKeyId",
                    "replacedKeyExpiresAt"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountApiKeysRotate",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "apiKeysRotate"
      }
    },
    "/v1/account/api-keys/revoke": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "revoked": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "revoked"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountApiKeysRevoke",
        "summary": "Account api keys revoke",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "apiKeysRevoke"
      }
    },
    "/v1/account/consent/accept": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "acceptTerms": {
                    "type": "boolean",
                    "enum": [
                      true
                    ]
                  },
                  "acceptDpa": {
                    "type": "boolean",
                    "enum": [
                      true
                    ]
                  }
                },
                "required": [
                  "acceptTerms",
                  "acceptDpa"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "termsVersion": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "termsAcceptedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "dpaVersion": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "dpaAcceptedAt": {
                      "nullable": true,
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "currentTermsVersion": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "currentDpaVersion": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "required": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "termsVersion",
                    "termsAcceptedAt",
                    "dpaVersion",
                    "dpaAcceptedAt",
                    "currentTermsVersion",
                    "currentDpaVersion",
                    "required"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountConsentAccept",
        "summary": "Account consent accept",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "consentAccept"
      }
    },
    "/v1/account/profile/update": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 200,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    },
                    "email": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "name": {
                      "nullable": true,
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "required": [
                    "id",
                    "email",
                    "name"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountProfileUpdate",
        "summary": "Account profile update",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "profileUpdate"
      }
    },
    "/v1/account/email/change-request": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "newEmail": {
                    "type": "string",
                    "maxLength": 200,
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "locale": {
                    "default": "en",
                    "type": "string",
                    "enum": [
                      "en",
                      "lt",
                      "de"
                    ]
                  }
                },
                "required": [
                  "newEmail"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sent": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "sent"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountEmailChangeRequest",
        "summary": "Account email change request",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "emailChangeRequest"
      }
    },
    "/v1/account/sessions/list": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "companyId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ipAddress": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "userAgent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lastSeenAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "expiresAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "current": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "companyId",
                          "ipAddress",
                          "userAgent",
                          "lastSeenAt",
                          "createdAt",
                          "expiresAt",
                          "current"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountSessionsList",
        "summary": "Account sessions list",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "sessionsList"
      }
    },
    "/v1/account/sessions/revoke": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "revoked": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "revoked"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountSessionsRevoke",
        "summary": "Account sessions revoke",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "sessionsRevoke"
      }
    },
    "/v1/account/sessions/revoke-others": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "revoked": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    }
                  },
                  "required": [
                    "revoked"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountSessionsRevokeOthers",
        "summary": "Account sessions revoke others",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "sessionsRevokeOthers"
      }
    },
    "/v1/account/export": {
      "post": {
        "summary": "Download everything Nordlet stores about the signed-in user",
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "generatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-07-01T09:30:00.000Z"
                    },
                    "user": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[\\s\\S]*$"
                        },
                        "email": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "name": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "locale": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "plan": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        }
                      },
                      "required": [
                        "id",
                        "email",
                        "name",
                        "locale",
                        "plan",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    },
                    "consent": {
                      "type": "object",
                      "properties": {
                        "termsVersion": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "termsAcceptedAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "dpaVersion": {
                          "nullable": true,
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "dpaAcceptedAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "currentTermsVersion": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "currentDpaVersion": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "required": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "termsVersion",
                        "termsAcceptedAt",
                        "dpaVersion",
                        "dpaAcceptedAt",
                        "currentTermsVersion",
                        "currentDpaVersion",
                        "required"
                      ],
                      "additionalProperties": false
                    },
                    "memberships": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "companyId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "companyName": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "role": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "since": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          }
                        },
                        "required": [
                          "companyId",
                          "companyName",
                          "role",
                          "since"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "sessions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "companyId": {
                            "nullable": true,
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "ipAddress": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "userAgent": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "lastSeenAt": {
                            "nullable": true,
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "expiresAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          },
                          "current": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "companyId",
                          "ipAddress",
                          "userAgent",
                          "lastSeenAt",
                          "createdAt",
                          "expiresAt",
                          "current"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "billing": {
                      "nullable": true,
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "plan": {
                          "type": "string",
                          "pattern": "^[\\s\\S]*$"
                        },
                        "balanceCents": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "trialEndsAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        },
                        "firstTopUpAt": {
                          "nullable": true,
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-07-01T09:30:00.000Z"
                        }
                      },
                      "required": [
                        "status",
                        "plan",
                        "balanceCents",
                        "trialEndsAt",
                        "firstTopUpAt"
                      ],
                      "additionalProperties": false
                    },
                    "creditTransactions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "type": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "amountCents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "balanceAfterCents": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "description": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "type",
                          "amountCents",
                          "balanceAfterCents",
                          "description",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "auditEntries": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "companyId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[\\s\\S]*$"
                          },
                          "action": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "entity": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "entityId": {
                            "nullable": true,
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "id",
                          "companyId",
                          "action",
                          "entity",
                          "entityId",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "generatedAt",
                    "user",
                    "consent",
                    "memberships",
                    "sessions",
                    "billing",
                    "creditTransactions",
                    "auditEntries"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountExport",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "export"
      }
    },
    "/v1/account/delete": {
      "post": {
        "summary": "Delete the signed-in user account",
        "tags": [
          "account"
        ],
        "description": "Removes the user: sessions, sign-in links, memberships and pending invitations are deleted at once; the email and name are replaced by an anonymous placeholder immediately and the remaining row is removed after 30 days. Refused while the user still owns or pays for a company that is not deleted.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "confirmEmail": {
                    "type": "string",
                    "maxLength": 200,
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  }
                },
                "required": [
                  "confirmEmail"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountDelete",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "delete"
      }
    },
    "/v1/account/referral/get": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "link": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "points": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "referredCount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "rates": {
                      "type": "object",
                      "properties": {
                        "perEur": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        },
                        "pointCents": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "format": "int64"
                        }
                      },
                      "required": [
                        "perEur",
                        "pointCents"
                      ],
                      "additionalProperties": false
                    },
                    "history": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "points": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          },
                          "reason": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "example": "2026-07-01T09:30:00.000Z"
                          }
                        },
                        "required": [
                          "points",
                          "reason",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "code",
                    "link",
                    "points",
                    "referredCount",
                    "rates",
                    "history"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountReferralGet",
        "summary": "Account referral get",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "referralGet"
      }
    },
    "/v1/account/referral/convert": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "points": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991,
                    "format": "int64"
                  }
                },
                "required": [
                  "points"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "points": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "amountCents": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "pointsLeft": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    },
                    "balanceCents": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    }
                  },
                  "required": [
                    "points",
                    "amountCents",
                    "pointsLeft",
                    "balanceCents"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountReferralConvert",
        "summary": "Account referral convert",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "referralConvert"
      }
    },
    "/v1/account/table-settings/get": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "tableKey": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  }
                },
                "required": [
                  "tableKey"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tableKey": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "columns": {
                      "nullable": true,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "pageSize": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    }
                  },
                  "required": [
                    "tableKey",
                    "columns",
                    "pageSize"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountTableSettingsGet",
        "summary": "Account table settings get",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "tableSettingsGet"
      }
    },
    "/v1/account/table-settings/set": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "tableKey": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[\\s\\S]*$"
                  },
                  "columns": {
                    "nullable": true,
                    "maxItems": 60,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[\\s\\S]*$"
                    }
                  },
                  "pageSize": {
                    "nullable": true,
                    "anyOf": [
                      {
                        "type": "number",
                        "enum": [
                          10
                        ]
                      },
                      {
                        "type": "number",
                        "enum": [
                          25
                        ]
                      },
                      {
                        "type": "number",
                        "enum": [
                          50
                        ]
                      },
                      {
                        "type": "number",
                        "enum": [
                          100
                        ]
                      },
                      {
                        "type": "number",
                        "enum": [
                          200
                        ]
                      },
                      {
                        "type": "number",
                        "enum": [
                          500
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "tableKey"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tableKey": {
                      "type": "string",
                      "pattern": "^[\\s\\S]*$"
                    },
                    "columns": {
                      "nullable": true,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[\\s\\S]*$"
                      }
                    },
                    "pageSize": {
                      "nullable": true,
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991,
                      "format": "int64"
                    }
                  },
                  "required": [
                    "tableKey",
                    "columns",
                    "pageSize"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountTableSettingsSet",
        "summary": "Account table settings set",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "tableSettingsSet"
      }
    },
    "/v1/account/table-settings/list": {
      "post": {
        "tags": [
          "account"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "tableKey": {
                            "type": "string",
                            "pattern": "^[\\s\\S]*$"
                          },
                          "columns": {
                            "nullable": true,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^[\\s\\S]*$"
                            }
                          },
                          "pageSize": {
                            "nullable": true,
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991,
                            "format": "int64"
                          }
                        },
                        "required": [
                          "tableKey",
                          "columns",
                          "pageSize"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "rows"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "400": {
            "description": "Request validation failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "402": {
            "description": "The trial or the prepaid credit has ended; top up or subscribe to continue",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "403": {
            "description": "The API key lacks the required scope",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with the current state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "413": {
            "description": "The request body or uploaded file is larger than allowed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "422": {
            "description": "The request is well-formed but violates a business rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Request budget for the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in the current window",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "X-RateLimit-Reset": {
                "description": "Seconds until the window resets",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying",
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0,
                  "maximum": 2147483647
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "operationId": "accountTableSettingsList",
        "summary": "Account table settings list",
        "x-fern-sdk-group-name": "account",
        "x-fern-sdk-method-name": "tableSettingsList"
      }
    }
  },
  "servers": [
    {
      "url": "https://api.nordlet.com",
      "description": "Production"
    }
  ],
  "security": [
    {
      "apiKey": []
    }
  ],
  "x-webhooks": {
    "agreement.invoice_generated": {
      "post": {
        "summary": "Event agreement.invoice_generated",
        "operationId": "webhook_agreement_invoice_generated",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "agreement.invoice_generated"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "bank_feed.synced": {
      "post": {
        "summary": "Event bank_feed.synced",
        "operationId": "webhook_bank_feed_synced",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "bank_feed.synced"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "filing.failed": {
      "post": {
        "summary": "Event filing.failed",
        "operationId": "webhook_filing_failed",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "filing.failed"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "filing.rejected": {
      "post": {
        "summary": "Event filing.rejected",
        "operationId": "webhook_filing_rejected",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "filing.rejected"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "goods_receipt.posted": {
      "post": {
        "summary": "Event goods_receipt.posted",
        "operationId": "webhook_goods_receipt_posted",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "goods_receipt.posted"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "intercompany.invoice_mirrored": {
      "post": {
        "summary": "Event intercompany.invoice_mirrored",
        "operationId": "webhook_intercompany_invoice_mirrored",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "intercompany.invoice_mirrored"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "item.created": {
      "post": {
        "summary": "Event item.created",
        "operationId": "webhook_item_created",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "item.created"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "item.deleted": {
      "post": {
        "summary": "Event item.deleted",
        "operationId": "webhook_item_deleted",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "item.deleted"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "item.updated": {
      "post": {
        "summary": "Event item.updated",
        "operationId": "webhook_item_updated",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "item.updated"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "lead.converted": {
      "post": {
        "summary": "Event lead.converted",
        "operationId": "webhook_lead_converted",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "lead.converted"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "lead.created": {
      "post": {
        "summary": "Event lead.created",
        "operationId": "webhook_lead_created",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "lead.created"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "partner_inquiry.created": {
      "post": {
        "summary": "Event partner_inquiry.created",
        "operationId": "webhook_partner_inquiry_created",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "partner_inquiry.created"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "payroll_run.approved": {
      "post": {
        "summary": "Event payroll_run.approved",
        "operationId": "webhook_payroll_run_approved",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "payroll_run.approved"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "pos_report.created": {
      "post": {
        "summary": "Event pos_report.created",
        "operationId": "webhook_pos_report_created",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "pos_report.created"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "price_list.updated": {
      "post": {
        "summary": "Event price_list.updated",
        "operationId": "webhook_price_list_updated",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "price_list.updated"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "purchase_invoice.paid": {
      "post": {
        "summary": "Event purchase_invoice.paid",
        "operationId": "webhook_purchase_invoice_paid",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "purchase_invoice.paid"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "purchase_invoice.registered": {
      "post": {
        "summary": "Event purchase_invoice.registered",
        "operationId": "webhook_purchase_invoice_registered",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "purchase_invoice.registered"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "purchase_order.approved": {
      "post": {
        "summary": "Event purchase_order.approved",
        "operationId": "webhook_purchase_order_approved",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "purchase_order.approved"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "purchase_order.received": {
      "post": {
        "summary": "Event purchase_order.received",
        "operationId": "webhook_purchase_order_received",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "purchase_order.received"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "refund_liability.actual": {
      "post": {
        "summary": "Event refund_liability.actual",
        "operationId": "webhook_refund_liability_actual",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "refund_liability.actual"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "refund_liability.trued_up": {
      "post": {
        "summary": "Event refund_liability.trued_up",
        "operationId": "webhook_refund_liability_trued_up",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "refund_liability.trued_up"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "report.completed": {
      "post": {
        "summary": "Event report.completed",
        "operationId": "webhook_report_completed",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "report.completed"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "report.failed": {
      "post": {
        "summary": "Event report.failed",
        "operationId": "webhook_report_failed",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "report.failed"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "revenue_recognition.modified": {
      "post": {
        "summary": "Event revenue_recognition.modified",
        "operationId": "webhook_revenue_recognition_modified",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "revenue_recognition.modified"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "revenue_recognition.posted": {
      "post": {
        "summary": "Event revenue_recognition.posted",
        "operationId": "webhook_revenue_recognition_posted",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "revenue_recognition.posted"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "sale_invoice.einvoice_sent": {
      "post": {
        "summary": "Event sale_invoice.einvoice_sent",
        "operationId": "webhook_sale_invoice_einvoice_sent",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "sale_invoice.einvoice_sent"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "sale_invoice.issued": {
      "post": {
        "summary": "Event sale_invoice.issued",
        "operationId": "webhook_sale_invoice_issued",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "sale_invoice.issued"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "sale_invoice.paid": {
      "post": {
        "summary": "Event sale_invoice.paid",
        "operationId": "webhook_sale_invoice_paid",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "sale_invoice.paid"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "sale_invoice.peppol_sent": {
      "post": {
        "summary": "Event sale_invoice.peppol_sent",
        "operationId": "webhook_sale_invoice_peppol_sent",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "sale_invoice.peppol_sent"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "sale_invoice.sent": {
      "post": {
        "summary": "Event sale_invoice.sent",
        "operationId": "webhook_sale_invoice_sent",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "sale_invoice.sent"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "sales_order.created": {
      "post": {
        "summary": "Event sales_order.created",
        "operationId": "webhook_sales_order_created",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "sales_order.created"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "sales_order.fulfilled": {
      "post": {
        "summary": "Event sales_order.fulfilled",
        "operationId": "webhook_sales_order_fulfilled",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "sales_order.fulfilled"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "settlement.imported": {
      "post": {
        "summary": "Event settlement.imported",
        "operationId": "webhook_settlement_imported",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "settlement.imported"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "settlement.posted": {
      "post": {
        "summary": "Event settlement.posted",
        "operationId": "webhook_settlement_posted",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "settlement.posted"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "settlement.updated": {
      "post": {
        "summary": "Event settlement.updated",
        "operationId": "webhook_settlement_updated",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "settlement.updated"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "stock.changed": {
      "post": {
        "summary": "Event stock.changed",
        "operationId": "webhook_stock_changed",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "stock.changed"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "stock.reorder_needed": {
      "post": {
        "summary": "Event stock.reorder_needed",
        "operationId": "webhook_stock_reorder_needed",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "stock.reorder_needed"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "vat_review.opened": {
      "post": {
        "summary": "Event vat_review.opened",
        "operationId": "webhook_vat_review_opened",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "vat_review.opened"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    },
    "vat_review.resolved": {
      "post": {
        "summary": "Event vat_review.resolved",
        "operationId": "webhook_vat_review_resolved",
        "parameters": [
          {
            "in": "header",
            "name": "x-nordlet-event",
            "schema": {
              "type": "string"
            },
            "description": "The event type, same as eventType in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-delivery",
            "schema": {
              "type": "string"
            },
            "description": "The delivery id, same as id in the body"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature-v2",
            "schema": {
              "type": "string"
            },
            "description": "t=<unix seconds>,v1=<hex HMAC-SHA256 over \"<t>.<body>\" with the subscription secret>"
          },
          {
            "in": "header",
            "name": "x-nordlet-signature",
            "schema": {
              "type": "string"
            },
            "description": "sha256=<hex HMAC-SHA256 over the body>"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "version",
                  "companyId",
                  "eventType",
                  "createdAt",
                  "data"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Delivery id; repeated on every retry of the same event"
                  },
                  "version": {
                    "type": "integer",
                    "enum": [
                      1
                    ],
                    "description": "Envelope version"
                  },
                  "companyId": {
                    "type": "string",
                    "description": "The company the event belongs to"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "vat_review.resolved"
                    ]
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "The changed record"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Any 2xx status acknowledges the delivery; anything else is retried"
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "account"
    },
    {
      "name": "agreements"
    },
    {
      "name": "assets"
    },
    {
      "name": "audit"
    },
    {
      "name": "bank"
    },
    {
      "name": "billing"
    },
    {
      "name": "calendar"
    },
    {
      "name": "capture"
    },
    {
      "name": "cash"
    },
    {
      "name": "catalog"
    },
    {
      "name": "consolidation"
    },
    {
      "name": "declarations"
    },
    {
      "name": "ecommerce"
    },
    {
      "name": "files"
    },
    {
      "name": "fleet"
    },
    {
      "name": "hr"
    },
    {
      "name": "inventory"
    },
    {
      "name": "ledger"
    },
    {
      "name": "migration"
    },
    {
      "name": "partners"
    },
    {
      "name": "payroll"
    },
    {
      "name": "pos"
    },
    {
      "name": "production"
    },
    {
      "name": "projects"
    },
    {
      "name": "public"
    },
    {
      "name": "purchases"
    },
    {
      "name": "reference"
    },
    {
      "name": "reports"
    },
    {
      "name": "sales"
    },
    {
      "name": "transport"
    },
    {
      "name": "webhooks"
    }
  ]
}
